module documentation

Undocumented

Function _get_localzone Tries to find the local timezone configuration. This method prefers finding the timezone name and passing that to zoneinfo or pytz, over passing in the localtime file, as in the later case the zoneinfo name is unknown...
Function _tz_from_env Undocumented
def _get_localzone(_root: str = '/') -> datetime.tzinfo: (source)

Tries to find the local timezone configuration. This method prefers finding the timezone name and passing that to zoneinfo or pytz, over passing in the localtime file, as in the later case the zoneinfo name is unknown. The parameter _root makes the function look for files like /etc/localtime beneath the _root directory. This is primarily used by the tests. In normal usage you call the function without parameters.

def _tz_from_env(tzenv: str) -> datetime.tzinfo: (source)

Undocumented