This module contains helper functions to ease the transition from
another PEP 495-compatible library.
Check if a time zone is a
This will only import
pytzif it has already been imported, and does not rely on the existence of the
normalizemethods (since the shim classes also have these methods, but are not
pytzor shim timezone into its modern equivalent.
When passed a
pytzzone (not a shim), this returns the non-
pytzequivalent. This may fail if
pytzis using a data source incompatible with the upgraded provider’s data source, or if the
pytzzone was built from a file rather than an IANA key.
When passed an object that is not a shim or a
pytzzone, this returns the original object.