MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / _get_system_timezone

Function _get_system_timezone

src/pendulum/tz/local_timezone.py:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def _get_system_timezone() -> Timezone:
60 if sys.platform == "win32":
61 return _get_windows_timezone()
62 elif "darwin" in sys.platform:
63 return _get_darwin_timezone()
64
65 return _get_unix_timezone()
66
67
68if sys.platform == "win32":

Callers 1

get_local_timezoneFunction · 0.85

Calls 3

_get_windows_timezoneFunction · 0.85
_get_darwin_timezoneFunction · 0.85
_get_unix_timezoneFunction · 0.85

Tested by

no test coverage detected