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

Method utctimetuple

Lib/_pydatetime.py:2061–2068  ·  view source on GitHub ↗

Return UTC time tuple compatible with time.gmtime().

(self)

Source from the content-addressed store, hash-verified

2059 return (self - _EPOCH).total_seconds()
2060
2061 def utctimetuple(self):
2062 "Return UTC time tuple compatible with time.gmtime()."
2063 offset = self.utcoffset()
2064 if offset:
2065 self -= offset
2066 y, m, d = self.year, self.month, self.day
2067 hh, mm, ss = self.hour, self.minute, self.second
2068 return _build_struct_time(y, m, d, hh, mm, ss, 0)
2069
2070 def date(self):
2071 "Return the date part."

Callers 1

test_utctimetupleMethod · 0.80

Calls 2

utcoffsetMethod · 0.95
_build_struct_timeFunction · 0.85

Tested by 1

test_utctimetupleMethod · 0.64