MCPcopy Index your code
hub / github.com/RustPython/RustPython / _parse_tz

Function _parse_tz

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

Source from the content-addressed store, hash-verified

791 return cls(*args)
792
793def _parse_tz(tzname, gmtoff, gmtoff_fraction):
794 tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction)
795 if tzname:
796 return datetime_timezone(tzdelta, tzname)
797 else:
798 return datetime_timezone(tzdelta)
799
800def _strptime_datetime_time(cls, data_string, format="%H:%M:%S"):
801 """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