Return day of the week, where Monday == 1 ... Sunday == 7.
(self)
| 1252 | # Day-of-the-week and week-of-the-year, according to ISO |
| 1253 | |
| 1254 | def isoweekday(self): |
| 1255 | "Return day of the week, where Monday == 1 ... Sunday == 7." |
| 1256 | # 1-Jan-0001 is a Monday |
| 1257 | return self.toordinal() % 7 or 7 |
| 1258 | |
| 1259 | def isocalendar(self): |
| 1260 | """Return a named tuple containing ISO year, week number, and weekday. |