1TIMETRANS(1)          User Contributed Perl Documentation         TIMETRANS(1)
2
3
4

NAME

6       timetrans - Converts time into time
7

SYNOPSIS

9         timetrans [units-options] [-count]
10

DESCRIPTION

12       timetrans converts time from one type of unit to another.  If any of
13       the units options are specified, then timetrans will convert those time
14       units into the number of seconds to which they add up.  If given the
15       count option, timetrans will convert that number of seconds into the
16       appropriate number of weeks, days, hours, minutes, and seconds.  The
17       converted result is printed out.  Units options cannot be specified in
18       the same execution as the count option, and vice versa.
19
20       timetrans is intended for use with DNSSEC-Tools, for calculating a
21       zone's expiration time.
22

OPTIONS

24       Units Options
25
26       The converted value of each unit is totaled and a single result
27       printed.
28
29       -seconds seconds
30           Count of seconds to convert to seconds.
31
32       -minutes minutes
33           Count of minutes to convert to seconds.
34
35       -hours hours
36           Count of hours to convert to seconds.
37
38       -days days
39           Count of days to convert to seconds.
40
41       -weeks weeks
42           Count of weeks to convert to seconds.
43
44       Count Option
45
46       The specified seconds count is converted to the appropriate number of
47       weeks, days, hours, minutes, and seconds.
48
49       -count seconds
50           Count of seconds to convert to the appropriate set of units.
51

EXAMPLES

53       Example 1:  Converting 5 days into seconds
54
55           $(42)> timetrans -days 5
56           432000
57
58       Example 2:  Converting 2 weeks into seconds
59
60           $(43)> timetrans -w 2
61           1209600
62
63       Example 3:  Converting 8 days and 8 hours into seconds
64
65           $(44)> timetrans -d 8 -hours 8
66           720000
67
68       Example 4:  Converting 1 week, 1 day, and 8 hours into seconds
69
70           $(46)> timetrans -w 1 -days 1 -h 8
71           720000
72
73       Example 5:  Converting 14 weeks, 4 days, 21 hours, 8 minutes, and 8
74       seconds into seconds
75
76           $(47)> timetrans -w 14 -d 4 -h 21 -m 8 -s 8
77           8888888
78
79       Example 6:  Converting 720000 seconds into time units
80
81           $(48)> timetrans -c 720000
82           1 week, 1 day, 8 hours
83
84       Example 7:  Converting 1814421 seconds into time units
85
86           $(49)> timetrans -c 1814421
87           3 weeks, 21 seconds
88
89       Example 8:  Converting 8888888 seconds into time units
90
91           $(50)> timetrans -c 8888888
92           14 weeks, 4 days, 21 hours, 8 minutes, 8 seconds
93
95       Copyright 2004-2007 SPARTA, Inc.  All rights reserved.  See the COPYING
96       file included with the DNSSEC-Tools package for details.
97

AUTHOR

99       Wayne Morrison, tewok@users.sourceforge.net
100

SEE ALSO

102       zonesigner(8)
103
104       Net::DNS::SEC::Tools::timetrans.pm(3)
105
106
107
108perl v5.8.8                       2007-09-14                      TIMETRANS(1)
Impressum