Construct a datetime from a POSIX timestamp (like time.time()). A timezone info object may be passed in as well.
(cls, t, tz=None)
| 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): |
nothing calls this directly
no test coverage detected