class documentation
class tzwinbase(tzrangebase): (source)
Known subclasses: dateutil.tz.win.tzwin
, dateutil.tz.win.tzwinlocal
tzinfo class based on win32's timezones available in the registry.
Static Method | list |
Return a list of all time zones known to the system. |
Method | __eq__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | display |
Return the display name of the time zone. |
Method | transitions |
For a given year, get the DST on and off transition times, expressed always on the standard time side. For zones with no transitions, this function returns ``None``. |
Method | _get |
Undocumented |
Property | _dst |
Undocumented |
Inherited from tzrangebase
:
Method | __ne__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | dst |
Undocumented |
Method | fromutc |
Given a datetime in UTC, return local time |
Method | is |
Whether or not the "wall time" of a given datetime is ambiguous in this zone. |
Method | tzname |
Undocumented |
Method | utcoffset |
Undocumented |
Class Variable | __hash__ |
Undocumented |
Method | _isdst |
Undocumented |
Method | _naive |
Undocumented |
Inherited from _tzinfo
(via tzrangebase
):
Method | _fold |
Undocumented |
Method | _fold |
Determine the fold status of a "wall" datetime, given a representation of the same datetime as a (naive) UTC datetime. This is calculated based on the assumption that ``dt.utcoffset() - dt.dst()`` is constant for all datetimes, and that this offset is the actual number of hours separating ``dt_utc`` and ``dt_wall``. |
Method | _fromutc |
Given a timezone-aware datetime in a given timezone, calculates a timezone-aware datetime in a new timezone. |
overrides
dateutil.tz._common.tzrangebase.__init__
overridden in
dateutil.tz.win.tzwin
, dateutil.tz.win.tzwinlocal
Undocumented
For a given year, get the DST on and off transition times, expressed always on the standard time side. For zones with no transitions, this function returns ``None``. :param year: The year whose transitions you would like to query. :return: Returns a :class:`tuple` of :class:`datetime.datetime` objects, ``(dston, dstoff)`` for zones with an annual DST transition, or ``None`` for fixed offset zones.