Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ _datetime_ambiguous_or_imaginary
Function
_datetime_ambiguous_or_imaginary
django/utils/timezone.py:258–259 ·
view source on GitHub ↗
(dt, tz)
Source
from the content-addressed store, hash-verified
256
257
258
def
_datetime_ambiguous_or_imaginary(dt, tz):
259
return
tz.utcoffset(dt.replace(fold=not dt.fold)) != tz.utcoffset(dt)
Callers
1
__init__
Method · 0.90
Calls
1
utcoffset
Method · 0.45
Tested by
no test coverage detected