timer

Package: WA2L/WinTools 1.2.09
Section: Library Commands (3)
Updated: 14 January 2026
Index Return to Main Contents

 

NAME

timer - print seconds since the Epoch

 

SYNOPSIS

WA2LWinTools/lib/timer [ -h | -V ]

timer [[ -d | -t ] seconds ]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

return the number of seconds since the Epoch or return the date based on the given number of seconds since the Epoch.

 

OPTIONS

-d
return the date and time in the standard format as printed when the uxdate(1) command is issued without options.

-t
output in touch(1) STAMP format (MMDDhhmmCCYY.ss).

seconds
seconds to return the date for it. If the -d option is not specified, the date is returned in military format (YYYY-MM-DD hh:mm:ss).

 

ENVIRONMENT

$TZ
time zone.

 

EXIT STATUS

0
no error

4
usage printed

5
version printed.

 

FILES

-

 

EXAMPLES

The following examples are given as if they are all executed at the same point in time.

1) print the date

uxdate

Sun Sep 29 22:36:04 CEST 2008

2) print seconds since the Epoch

timer

1222720564

3) print the date based on a (calculated) timer

timer -d 1222634164

Sun Sep 28 22:36:04 2008

4) print the date in military format based on a (calculated) timer

timer 1222634164

2008-09-28 22:36:04

 

SEE ALSO

wintoolsintro(1), epoch2local(3), epoch2utc(3), touch(1), uxdate(1), https://en.wikipedia.org/wiki/Epoch_(computing)

 

NOTES

-

 

BUGS

-

 

AUTHOR

timer was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 13:40:02 GMT, January 31, 2026