MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / utctimetuple

Method utctimetuple

tools/python-3.11.9-amd64/Lib/datetime.py:1909–1916  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1907 return (self - _EPOCH).total_seconds()
1908
1909 def utctimetuple(self):
1910 "Return UTC time tuple compatible with time.gmtime()."
1911 offset = self.utcoffset()
1912 if offset:
1913 self -= offset
1914 y, m, d = self.year, self.month, self.day
1915 hh, mm, ss = self.hour, self.minute, self.second
1916 return _build_struct_time(y, m, d, hh, mm, ss, 0)
1917
1918 def date(self):
1919 "Return the date part."

Callers

nothing calls this directly

Calls 2

utcoffsetMethod · 0.95
_build_struct_timeFunction · 0.85

Tested by

no test coverage detected