MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / fromutc

Method fromutc

tests/test_code/py/pytz/__init__.py:225–228  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

223 _tzname = zone
224
225 def fromutc(self, dt):
226 if dt.tzinfo is None:
227 return self.localize(dt)
228 return super(utc.__class__, self).fromutc(dt)
229
230 def utcoffset(self, dt):
231 return ZERO

Callers

nothing calls this directly

Calls 1

localizeMethod · 0.95

Tested by

no test coverage detected