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

Method timetuple

Lib/_pydatetime.py:1965–1976  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1963 return cls(*(date_components + time_components))
1964
1965 def timetuple(self):
1966 "Return local time tuple compatible with time.localtime()."
1967 dst = self.dst()
1968 if dst is None:
1969 dst = -1
1970 elif dst:
1971 dst = 1
1972 else:
1973 dst = 0
1974 return _build_struct_time(self.year, self.month, self.day,
1975 self.hour, self.minute, self.second,
1976 dst)
1977
1978 def _mktime(self):
1979 """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