localised_datetime - bruno-beloff/scs_analysis GitHub Wiki

docs > software repositories > scs_analysis > commands > time


DESCRIPTION

The localised_datetime utility is used to report the localised date and time, as understood by the host operating system, in ISO 8601 format. Optional offsets in hours, minutes and seconds can be supplied.

The utility is useful when composing topic history data requests, or just finding out what the time is somewhere else.

SYNOPSIS

localised_datetime.py { [-o HOURS] [-m MINUTES] [-s SECONDS] [-t TIMEZONE_NAME] | -z }

Options
--version show program's version number and exit
-h, --help show this help message and exit
-o HOURS, --hours=HOURS offset from now in hours
-m MINUTES, --minutes=MINUTES offset from now in minutes
-s SECONDS, --seconds=SECONDS offset from now in seconds
-t ZONE, --timezone=ZONE present the time in the given zone
-z, --zones list the available timezone names to stderr
-v, --verbose report narrative to stderr

EXAMPLES

localised_datetime.py -o 1

DOCUMENT EXAMPLE - OUTPUT

2018-04-05T18:42:03.702+00:00

SEE ALSO

scs_analysis/sample_timezone

RESOURCES

ISO 8601