💾 Archived View for tris.fyi › pydoc › zoneinfo captured on 2023-04-26 at 13:33:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

zoneinfo (package)

This module has no docstring.

Classes

InvalidTZPathWarning

Warning raised if an invalid path is specified in PYTHONTZPATH.
with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

ZoneInfo

clear_cache(...)

  Clear the ZoneInfo cache.
dst(...)

  Retrieve a timedelta representing the amount of DST applied in a zone at the given datetime.
from_file(...)

  Create a ZoneInfo file from a file object.
fromutc(...)

  Given a datetime with local time in UTC, retrieve an adjusted datetime in local time.
no_cache(...)

  Get a new instance of ZoneInfo, bypassing the cache.
tzname(...)

  Retrieve a string containing the abbreviation for the time zone that applies in a zone at a given datetime.
utcoffset(...)

  Retrieve a timedelta representing the UTC offset in a zone at the given datetime.
key = <member 'key' of 'zoneinfo.ZoneInfo' objects>

ZoneInfoNotFoundError

Exception raised when a ZoneInfo key is not found.
with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Functions

available_timezones

available_timezones()

  Returns a set containing all available time zones.

      .. caution::

          This may attempt to open a large number of files, since the best way to
          determine if a given file on the time zone search path is to open it
          and check for the "magic string" at the beginning.
    

reset_tzpath

reset_tzpath(to=None)

Other members

TZPATH = ('/nix/store/j3m6hzirjaxi8q3mfbkmyi3n2wg2681y-tzdata-2022g/share/zoneinfo',)