Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/asyncpg
/ _system_timezone
Function
_system_timezone
tests/test_codecs.py:28–30 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
27
28
def
_system_timezone():
29
d = datetime.datetime.now(datetime.timezone.utc).astimezone()
30
return
datetime.timezone(d.utcoffset())
31
32
33
infinity_datetime = datetime.datetime(
Callers
1
test_codecs.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected