wiki:HetDescription/jrf/HetDescription/jrf/hettime

hettime

Convert between various notions of time at HET. 'time' may be either index time, an ISO-8601 string, or unixtime. The return values are the input time converted to all three formats. If no time is given on the command line, use the current time

Usage

Usage: hettime [options] [time]

Options:

--version show program's version number and exit -h, --help show this help message and exit

Description

The HET uses a number of different notions of time. Unix time, used by the unix computers, counts the number of seconds since 00:00 1 Jan 1970. Unix time is typically of the form 1474052407.87.

Index time is used in the TMCS system and is the number of seconds since 1800 UT. Index time wraps once every 24 hours and is designed to not roll over during the night time science period. The range of index time is 0 to 86399 but my be 86400 if a leap second has been inserted that year.

ISO-8601 is an ISO definition for a string based time description which it of the form ''2016-09-16T13:57:10''.

Output

If no arguments are given on the command line, hettime prints out the current time of day in all three formats. For example

hettime
3607.871364 1474052407.87 2016-09-16T19:00:07.871364

hettime can recognize the time format given on the command line and will display the time in all three formats. Note however, that index time has only 24 hour resolution to the unix time and the ISO time string will be for Jan 1970. You must know the date and rerun hettime with the correct ISO time string in order to find the correct unix time. For example, the index time 3607 will be converted to

hettime 3607
3607.0 68407.0 1970-01-01T19:00:07

You must rerun hettime again with the correct date to get the correct unix time;

hettime 2016-09-16T19:00:07
3607.0 1474052407.0 2016-09-16T19:00:07
Last modified 8 years ago Last modified on Sep 16, 2016 7:15:25 PM