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       The converted value of each unit is totaled and a single result
26       printed.
27
28       -seconds seconds
29           Count of seconds to convert to seconds.
30
31       -minutes minutes
32           Count of minutes to convert to seconds.
33
34       -hours hours
35           Count of hours to convert to seconds.
36
37       -days days
38           Count of days to convert to seconds.
39
40       -weeks weeks
41           Count of weeks to convert to seconds.
42
43   Count Option
44       The specified seconds count is converted to the appropriate number of
45       weeks, days, hours, minutes, and seconds.
46
47       -count seconds
48           Count of seconds to convert to the appropriate set of units.
49
50   Other Options
51       timetrans has the following miscellaneous options.
52
53       -Version
54           Displays the version information for timetrans and the DNSSEC-Tools
55           package.
56

EXAMPLES

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

AUTHOR

104       Wayne Morrison, tewok@tislabs.com
105

SEE ALSO

107       zonesigner(8)
108
109       Net::DNS::SEC::Tools::timetrans.pm(3)
110
111
112
113perl v5.30.1                      2020-01-28                      TIMETRANS(1)
Impressum