• Antelope Release 5.5 Mac OS X 10.8.5 2015-04-21

 

NAME

reltime - print times relative to another time

SYNOPSIS

reltime [-f from] [-o fmt] [sign] [count]
                [interval]

SUPPORT


Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.

FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.

DESCRIPTION

This utility prints times relative to either the current time or a time specified on the commandline with the -f option. It is intended to be used in cronjobs or with programs that require absolute times e.g. dlmon.

OPTIONS

EXAMPLE



niko> reltime 1
1101506868.413
niko> reltime -f 1/1/2000 -o "%Y-%m-%d" - 1.95 C
1805-01-01
niko> reltime  1 d
1101593349.905
niko> reltime -o "%D" - 1 y
26/11/03
niko> reltime -o "%D" w
3/12/04
niko> reltime f 1/1/2004 -o %D 12 month
1/1/05
niko> reltime f 1/1/2004 -o %D 365 days
12/31/04

niko> dlmon -model altus -start_status `reltime - 1 d` :12345 -cmd :12333
dlmon starts, reloading the status since yesterday...

SEE ALSO

epoch(1), dlmon(1)

AUTHOR

Nikolaus Horn, 2004

ZAMG / Vienna, Nikolaus.Horn@zamg.ac.at

Antelope User Group Contributed Software
Printer icon