MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / get_local_timezone

Function get_local_timezone

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

Source from the content-addressed store, hash-verified

28
29
30def get_local_timezone() -> Timezone | FixedTimezone:
31 global _local_timezone
32
33 if _mock_local_timezone is not None:
34 return _mock_local_timezone
35
36 if _local_timezone is None:
37 tz = _get_system_timezone()
38
39 _local_timezone = tz
40
41 return _local_timezone
42
43
44def set_local_timezone(mock: str | Timezone | None = None) -> None:

Callers 1

local_timezoneFunction · 0.90

Calls 1

_get_system_timezoneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…