MCPcopy Index your code
hub / github.com/RustPython/RustPython / isoweekday

Method isoweekday

Lib/_pydatetime.py:1239–1242  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

test_weekdayMethod · 0.80

Calls 1

toordinalMethod · 0.95

Tested by 1

test_weekdayMethod · 0.64