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

Method timetuple

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

Return local time tuple compatible with time.localtime().

(self)

Source from the content-addressed store, hash-verified

1851 return cls(*(date_components + time_components))
1852
1853 def timetuple(self):
1854 "Return local time tuple compatible with time.localtime()."
1855 dst = self.dst()
1856 if dst is None:
1857 dst = -1
1858 elif dst:
1859 dst = 1
1860 else:
1861 dst = 0
1862 return _build_struct_time(self.year, self.month, self.day,
1863 self.hour, self.minute, self.second,
1864 dst)
1865
1866 def _mktime(self):
1867 """Return integer POSIX timestamp."""

Callers

nothing calls this directly

Calls 2

dstMethod · 0.95
_build_struct_timeFunction · 0.85

Tested by

no test coverage detected