MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / ZoneInfo

Class ZoneInfo

tortoise/timezone.py:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class ZoneInfo(_ZoneInfo):
19 @property
20 def zone(self) -> str:
21 # Compatible with pytz:
22 # >>> ZoneInfo('UTC').key == pytz.timezone('UTC').zone == 'UTC'
23 return self.key
24
25
26def parse_timezone(zone: str) -> tzinfo:

Callers 2

test_timezoneFunction · 0.90
parse_timezoneFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_timezoneFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…