MCPcopy Create free account
hub / github.com/python-arq/arq / get_tz

Function get_tz

arq/utils.py:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40@lru_cache
41def get_tz() -> Optional['pytz.BaseTzInfo']:
42 if pytz: # pragma: no branch
43 for timezone_key in timezone_env_vars:
44 tz_name = os.getenv(timezone_key)
45 if tz_name:
46 try:
47 return pytz.timezone(tz_name)
48 except KeyError:
49 logger.warning('unknown timezone: %r', tz_name)
50
51 return None
52
53
54def ms_to_datetime(unix_ms: int) -> datetime:

Callers 1

ms_to_datetimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…