Construct a datetime from time.time() and optional time zone info.
(cls, tz=None)
| 1796 | |
| 1797 | @classmethod |
| 1798 | def now(cls, tz=None): |
| 1799 | "Construct a datetime from time.time() and optional time zone info." |
| 1800 | t = _time.time() |
| 1801 | return cls.fromtimestamp(t, tz) |
| 1802 | |
| 1803 | @classmethod |
| 1804 | def utcnow(cls): |