MCPcopy
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
258def _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

utcoffsetMethod · 0.45

Tested by

no test coverage detected