class documentation

``tzstr`` objects are time zone objects specified by a time-zone string as it would be passed to a ``TZ`` variable on POSIX-style systems (see the `GNU C Library: TZ Variable`_ for more details). There is one notable exception, which is that POSIX-style time zones use an inverted offset format, so normally ``GMT+3`` would be parsed as an offset 3 hours *behind* GMT. The ``tzstr`` time zone object will parse this as an offset 3 hours *ahead* of GMT. If you would like to maintain the POSIX behavior, pass a ``True`` value to ``posix_offset``. The :class:`tzrange` object provides the same functionality, but is specified using :class:`relativedelta.relativedelta` objects. rather than strings. :param s: A time zone string in ``TZ`` variable format. This can be a :class:`bytes` (2.x: :class:`str`), :class:`str` (2.x: :class:`unicode`) or a stream emitting unicode characters (e.g. :class:`StringIO`). :param posix_offset: Optional. If set to ``True``, interpret strings such as ``GMT+3`` or ``UTC+3`` as being 3 hours *behind* UTC rather than ahead, per the POSIX standard. .. caution:: Prior to version 2.7.0, this function also supported time zones in the format: * ``EST5EDT,4,0,6,7200,10,0,26,7200,3600`` * ``EST5EDT,4,1,0,7200,10,-1,0,7200,3600`` This format is non-standard and has been deprecated; this function will raise a :class:`DeprecatedTZFormatWarning` until support is removed in a future version. .. _`GNU C Library: TZ Variable`: https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html

Method __init__ Undocumented
Method __repr__ Undocumented
Instance Variable hasdst Undocumented
Method _delta Undocumented
Instance Variable _end_delta Undocumented
Instance Variable _s Undocumented
Instance Variable _start_delta Undocumented

Inherited from tzrange:

Method __eq__ Undocumented
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``.
Instance Variable _dst_abbr Undocumented
Instance Variable _dst_base_offset_ Undocumented
Instance Variable _dst_offset Undocumented
Instance Variable _std_abbr Undocumented
Instance Variable _std_offset Undocumented
Property _dst_base_offset Undocumented

Inherited from tzrangebase (via tzrange):

Method __ne__ Undocumented
Method dst Undocumented
Method fromutc Given a datetime in UTC, return local time
Method is_ambiguous 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_isdst Undocumented

Inherited from _tzinfo (via tzrange, tzrangebase):

Method _fold Undocumented
Method _fold_status 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.
def __init__(self, s, posix_offset=False): (source)

Undocumented

def __repr__(self): (source)
hasdst = (source)

Undocumented

def _delta(self, x, isend=0): (source)

Undocumented

_end_delta = (source)

Undocumented

Undocumented

_start_delta = (source)

Undocumented