Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)
(self)
| 296 | return calendar.monthrange(self.data.year, self.data.month)[1] |
| 297 | |
| 298 | def U(self): |
| 299 | "Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)" |
| 300 | value = self.data |
| 301 | if not isinstance(value, datetime): |
| 302 | value = datetime.combine(value, time.min) |
| 303 | return int(value.timestamp()) |
| 304 | |
| 305 | def w(self): |
| 306 | "Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)" |