Construct a datetime from a POSIX timestamp (like time.time()). A timezone info object may be passed in as well.
(cls, timestamp, tz=None)
| 1897 | |
| 1898 | @classmethod |
| 1899 | def fromtimestamp(cls, timestamp, tz=None): |
| 1900 | """Construct a datetime from a POSIX timestamp (like time.time()). |
| 1901 | |
| 1902 | A timezone info object may be passed in as well. |
| 1903 | """ |
| 1904 | _check_tzinfo_arg(tz) |
| 1905 | |
| 1906 | return cls._fromtimestamp(timestamp, tz is not None, tz) |
| 1907 | |
| 1908 | @classmethod |
| 1909 | def utcfromtimestamp(cls, t): |
nothing calls this directly
no test coverage detected