Primary
date.fromtimestamp() ⚬|Documentation|1st|20251021201258-00-⌔
datetime — Basic date and time types — Python 3 documentation#datetime.date.fromtimestamp
method
classdate.fromtimestamp(timestamp)Return the local date corresponding to the POSIX timestamp, such as is returned by
time.time().This may raise
OverflowError, if the timestamp is out of the range of values supported by the platform Clocaltime()function, andOSErroronlocaltime()failure. It’s common for this to be restricted to years from 1970 through 2038. Note that on non-POSIX systems that include leap seconds in their notion of a timestamp, leap seconds are ignored byfromtimestamp().Changed in version 3.3: Raise
OverflowErrorinstead ofValueErrorif the timestamp is out of the range of values supported by the platform Clocaltime()function. RaiseOSErrorinstead ofValueErroronlocaltime()failure.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •