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 |
Undocumented |
Method | _parse |
Undocumented |
Instance Variable | _s |
Undocumented |
Instance Variable | _vtz |
Undocumented |
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.