Learn Before
Concept
tz module
The tz module offers timezone implementations with subclasses to handle timezones such as local machine timezone, UTC timezone, given ranges, and TZ environment string.
To create an instance using the UTC timezone, use:
dateutil.tz.UTC
Functions
datetutil.tz.gettz(name) retrieves a time zone object from a string representation.
dateutil.tz.datetime_ambiguous(dt, tz) determines whether or not a given datetime is ambiguous.
dateutil.tz.datetime_exists(dt, tz-None) determines whether or not a give ndatetime wold fall in a gap.
0
1
Updated 2021-07-13
Tags
Python Programming Language
Data Science