MCPcopy Index your code
hub / github.com/python/cpython / isoweekday

Method isoweekday

Lib/_pydatetime.py:1254–1257  ·  view source on GitHub ↗

Return day of the week, where Monday == 1 ... Sunday == 7.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

test_weekdayMethod · 0.80

Calls 1

toordinalMethod · 0.95

Tested by 1

test_weekdayMethod · 0.64