timezone¶
-
trytond.tools.timezone.
get_tzinfo
(zoneid)¶ Get a class representing a IANA time zone specified by the string
zoneid
.
-
trytond.tools.timezone.
available_timezones
()¶ Return a set of all the valid IANA keys available.
-
trytond.tools.timezone.
UTC
¶ The UTC
datetime.tzinfo
instance.
-
trytond.tools.timezone.
SERVER
¶ The server timezone
datetime.tzinfo
instance.Tryton tests the environment variables
TRYTOND_TZ
andTZ
in this order to select to IANA key to use. If they are both empty, it defaults toUTC
.