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

Method fromtimestamp

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

Construct a datetime from a POSIX timestamp (like time.time()). A timezone info object may be passed in as well.

(cls, t, tz=None)

Source from the content-addressed store, hash-verified

1781
1782 @classmethod
1783 def fromtimestamp(cls, t, tz=None):
1784 """Construct a datetime from a POSIX timestamp (like time.time()).
1785
1786 A timezone info object may be passed in as well.
1787 """
1788 _check_tzinfo_arg(tz)
1789
1790 return cls._fromtimestamp(t, tz is not None, tz)
1791
1792 @classmethod
1793 def utcfromtimestamp(cls, t):

Callers

nothing calls this directly

Calls 2

_check_tzinfo_argFunction · 0.85
_fromtimestampMethod · 0.80

Tested by

no test coverage detected