timezone - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > time


DESCRIPTION

The timezone utility is used to specify the timezone in which a sensing device is operating. The timezone set here is reported by the scs_dev/status_sampler utility.

Typically, the operating system of the device is set to UTC. Environmental sensing documents always include an ISO 8601 localised datetime, and this localised datetime is set to the timezone of the operating system.

All time zones specified by the Internet Assigned Numbers Authority (IANA) are available.

Note that the scs_dev sampler processes must be restarted for changes to take effect.

SYNOPSIS

timezone.py [{ -z | -s TIMEZONE_NAME | - l }] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-z, --zones list the available timezone names to stderr
-s ZONE, --set=ZONE override system timezone with ZONE
-l, --link link to system timezone
-v, --verbose report narrative to stderr

EXAMPLES

./timezone.py -s Europe/London -v

DOCUMENT EXAMPLE

{"set-on": "2017-08-14T14:25:29.794+00:00", "name": "Europe/London"}

FILES

~/SCS/conf/timezone.conf

SEE ALSO

scs_dev/status_sampler

RESOURCES

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones