You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support non-zero tzindex in datetime extended type. If both tzoffset and
tzindex are specified, tzindex is prior (same as in Tarantool [1]).
Tarantool index to Olson name map and inverted one are built with
gen_timezones.sh script based on tarantool/go-tarantool script [2].
If possible, Tarantool timezone is decoded to pytz [3] timezone.
pytz is based on Olson tz database, same as Tarantool. If Tarantool
timezone name is not supported by pytz (most abbreviated timezones,
like `'MSK'`), we use
`datetime.timezone(datetime.timedelta(minutes=offset), name=tzname)`.
There are some pytz timezones not supported by Tarantool:
CST6CDT, EST5EDT, MET, MST7MDT, PST8PDT, Europe/Kyiv and
all Etc/GMT* timezones (except for Etc/GMT, Etc/GMT+0, Etc/GMT-0).
The exception is raised in this case.
If ambiguous Tarantool timezone is specified, the exception is raised.
1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/new/
2. https://github.com/tarantool/go-tarantool/blob/5801dc6f5ce69db7c8bc0c0d0fe4fb6042d5ecbc/datetime/gen-timezones.sh
3. https://pypi.org/project/pytz/Closes#204
0 commit comments