Construct a naive UTC datetime from a POSIX timestamp.
(cls, t)
| 1872 | |
| 1873 | @classmethod |
| 1874 | def utcfromtimestamp(cls, t): |
| 1875 | """Construct a naive UTC datetime from a POSIX timestamp.""" |
| 1876 | import warnings |
| 1877 | warnings.warn("datetime.datetime.utcfromtimestamp() is deprecated and scheduled " |
| 1878 | "for removal in a future version. Use timezone-aware " |
| 1879 | "objects to represent datetimes in UTC: " |
| 1880 | "datetime.datetime.fromtimestamp(t, datetime.UTC).", |
| 1881 | DeprecationWarning, |
| 1882 | stacklevel=2) |
| 1883 | return cls._fromtimestamp(t, True, None) |
| 1884 | |
| 1885 | @classmethod |
| 1886 | def now(cls, tz=None): |
nothing calls this directly
no test coverage detected