Return day of the week, where Monday == 1 ... Sunday == 7.
(self)
| 1237 | # Day-of-the-week and week-of-the-year, according to ISO |
| 1238 | |
| 1239 | def isoweekday(self): |
| 1240 | "Return day of the week, where Monday == 1 ... Sunday == 7." |
| 1241 | # 1-Jan-0001 is a Monday |
| 1242 | return self.toordinal() % 7 or 7 |
| 1243 | |
| 1244 | def isocalendar(self): |
| 1245 | """Return a named tuple containing ISO year, week number, and weekday. |