Construct a date from a POSIX timestamp (like time.time()).
(cls, t)
| 956 | |
| 957 | @classmethod |
| 958 | def fromtimestamp(cls, t): |
| 959 | "Construct a date from a POSIX timestamp (like time.time())." |
| 960 | y, m, d, hh, mm, ss, weekday, jday, dst = _time.localtime(t) |
| 961 | return cls(y, m, d) |
| 962 | |
| 963 | @classmethod |
| 964 | def today(cls): |
no outgoing calls
no test coverage detected