PyDocs

Nav

Data Types

datetime.utcfromtimestamp

datetime

classmethod of datetimeDeprecated 3.12
  • datetime.utcfromtimestamp(timestamp)
Deprecated since 3.12. Use datetime.fromtimestamp() with UTC instead.
Create a naive UTC datetime from a POSIX timestamp.
Changed in 3.3, 3.15
  • 3.3: Raise OverflowError instead of ValueError if the timestamp is out of the range of values supported by the platform C gmtime() function. Raise OSError instead of ValueError on gmtime() failure.
  • 3.15: Accepts any real number as timestamp, not only integer or float.
0 Examples
No examples for datetime/datetime.utcfromtimestamp.
See Also
No see-alsos for datetime/datetime.utcfromtimestamp
0 Notes
No notes for datetime.utcfromtimestamp