Construct a datetime from time.time() and optional time zone info.
(cls, tz=None)
| 1919 | |
| 1920 | @classmethod |
| 1921 | def now(cls, tz=None): |
| 1922 | "Construct a datetime from time.time() and optional time zone info." |
| 1923 | t = _time.time() |
| 1924 | return cls.fromtimestamp(t, tz) |
| 1925 | |
| 1926 | @classmethod |
| 1927 | def utcnow(cls): |