class documentation

This object is designed to parse an iCalendar-style ``VTIMEZONE`` structure as set out in `RFC 5545`_ Section 4.6.5 into one or more `tzinfo` objects. :param `fileobj`: A file or stream in iCalendar format, which should be UTF-8 encoded with CRLF endings. .. _`RFC 5545`: https://tools.ietf.org/html/rfc5545

Method __init__ Undocumented
Method __repr__ Undocumented
Method get Retrieve a :py:class:`datetime.tzinfo` object by its ``tzid``.
Method keys Retrieves the available time zones as a list.
Method _parse_offset Undocumented
Method _parse_rfc Undocumented
Instance Variable _s Undocumented
Instance Variable _vtz Undocumented
def __init__(self, fileobj): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def get(self, tzid=None): (source)

Retrieve a :py:class:`datetime.tzinfo` object by its ``tzid``. :param tzid: If there is exactly one time zone available, omitting ``tzid`` or passing :py:const:`None` value returns it. Otherwise a valid key (which can be retrieved from :func:`keys`) is required. :raises ValueError: Raised if ``tzid`` is not specified but there are either more or fewer than 1 zone defined. :returns: Returns either a :py:class:`datetime.tzinfo` object representing the relevant time zone or :py:const:`None` if the ``tzid`` was not found.

def keys(self): (source)

Retrieves the available time zones as a list.

def _parse_offset(self, s): (source)

Undocumented

def _parse_rfc(self, s): (source)

Undocumented

Undocumented

Undocumented