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

Method timestamp

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

Return POSIX timestamp as float

(self)

Source from the content-addressed store, hash-verified

1899
1900
1901 def timestamp(self):
1902 "Return POSIX timestamp as float"
1903 if self._tzinfo is None:
1904 s = self._mktime()
1905 return s + self.microsecond / 1e6
1906 else:
1907 return (self - _EPOCH).total_seconds()
1908
1909 def utctimetuple(self):
1910 "Return UTC time tuple compatible with time.gmtime()."

Callers 1

from_datetimeMethod · 0.80

Calls 2

_mktimeMethod · 0.95
total_secondsMethod · 0.80

Tested by

no test coverage detected