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

Function _timegm

Lib/http/cookiejar.py:81–87  ·  view source on GitHub ↗
(tt)

Source from the content-addressed store, hash-verified

79
80EPOCH_YEAR = 1970
81def _timegm(tt):
82 year, month, mday, hour, min, sec = tt[:6]
83 if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
84 (0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
85 return timegm(tt)
86 else:
87 return None
88
89DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
90MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",

Callers 2

_str2timeFunction · 0.85
http2timeFunction · 0.85

Calls 1

timegmFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…