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

Method fromtimestamp

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

Construct a date from a POSIX timestamp (like time.time()).

(cls, t)

Source from the content-addressed store, hash-verified

956
957 @classmethod
958 def fromtimestamp(cls, t):
959 "Construct a date from a POSIX timestamp (like time.time())."
960 y, m, d, hh, mm, ss, weekday, jday, dst = _time.localtime(t)
961 return cls(y, m, d)
962
963 @classmethod
964 def today(cls):

Callers 9

Time2InternaldateFunction · 0.45
todayMethod · 0.45
nowMethod · 0.45
formatdateFunction · 0.45
send_headMethod · 0.45
_get_extensionsMethod · 0.45
to_datetimeMethod · 0.45
renderMethod · 0.45
file_mtimeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected