MCPcopy Index your code
hub / github.com/python/cpython / _parse_tz

Function _parse_tz

Lib/_strptime.py:811–816  ·  view source on GitHub ↗
(tzname, gmtoff, gmtoff_fraction)

Source from the content-addressed store, hash-verified

809 return cls(*args)
810
811def _parse_tz(tzname, gmtoff, gmtoff_fraction):
812 tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction)
813 if tzname:
814 return datetime_timezone(tzdelta, tzname)
815 else:
816 return datetime_timezone(tzdelta)
817
818def _strptime_datetime_time(cls, data_string, format="%H:%M:%S"):
819 """Return a time instance based on the input string and the

Callers 2

_strptime_datetime_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…