TIMETRANS(1)
π TIMETRANS(1) β User Contributed Perl Documentation π
okay bestie, welcome to the TIMETRANS(1) page from the User Contributed Perl Documentation. it's giving very useful little time converter energy, and we're gonna get through it together. π«Ά
πΈ NAME πΈ
timetrans β Converts time into time
β¨ SYNOPSIS β¨
timetrans [units-options] [-count]
π¦ DESCRIPTION π¦
timetrans converts time from one type of unit to another. literally its whole thing. π
If you specify any of the units options, then timetrans will convert those time units into the number of seconds they add up to. If you give it the count option instead, it converts that number of seconds into the appropriate number of weeks, days, hours, minutes, and seconds. The converted result gets printed out. β¨
β οΈ bestie, listen: units options cannot be specified in the same execution as the count option, and vice versa. pick a lane, no mixing. π
timetrans is intended for use with DNSSEC-Tools, for calculating a zone's expiration time. iykyk. π
π OPTIONS π
π Units Options π
The converted value of each unit is totaled and a single result printed. so you can stack them and get one cute little total. πΈ
-seconds secondsβ Count of seconds to convert to seconds.-minutes minutesβ Count of minutes to convert to seconds.-hours hoursβ Count of hours to convert to seconds.-days daysβ Count of days to convert to seconds.-weeks weeksβ Count of weeks to convert to seconds.
π Count Option π
The specified seconds count is converted to the appropriate number of weeks, days, hours, minutes, and seconds. it's like reverse-engineering the time soup. π
-count secondsβ Count of seconds to convert to the appropriate set of units.
π§ Other Options π§
timetrans has the following miscellaneous options. lil extras, no cap. β¨
-Versionβ Displays the version information fortimetransand the DNSSEC-Tools package.
π₯ EXAMPLES π₯
Example 1: Converting 5 days into seconds
$(42)> timetrans -days 5
432000
Example 2: Converting 2 weeks into seconds
$(43)> timetrans -w 2
1209600
Example 3: Converting 8 days and 8 hours into seconds
$(44)> timetrans -d 8 -hours 8
720000
Example 4: Converting 1 week, 1 day, and 8 hours into seconds
$(46)> timetrans -w 1 -days 1 -h 8
720000
Example 5: Converting 14 weeks, 4 days, 21 hours, 8 minutes, and 8 seconds into seconds
$(47)> timetrans -w 14 -d 4 -h 21 -m 8 -s 8
8888888
Example 6: Converting 720000 seconds into time units
$(48)> timetrans -c 720000
1 week, 1 day, 8 hours
Example 7: Converting 1814421 seconds into time units
$(49)> timetrans -c 1814421
3 weeks, 21 seconds
Example 8: Converting 8888888 seconds into time units
$(50)> timetrans -c 8888888
14 weeks, 4 days, 21 hours, 8 minutes, 8 seconds
π COPYRIGHT π
Copyright 2004-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details. π
π AUTHOR π
Wayne Morrison, tewok@tislabs.com π
π SEE ALSO π
zonesigner(8)Net::DNS::SEC::Tools::timetrans.pm(3)
π«Ά cute lil sign-off: this page is source/versionperl v5.44.0, dated2026-10-17, and it'sTIMETRANS(1). bye bestie, go convert some time! πβ¨
π¦ where this page comes from
- arch rolling: dnssec-tools 2.2.3-16 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms