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

Method weekday

Lib/_pydatetime.py:1233–1235  ·  view source on GitHub ↗

Return day of the week, where Monday == 0 ... Sunday == 6.

(self)

Source from the content-addressed store, hash-verified

1231 return NotImplemented
1232
1233 def weekday(self):
1234 "Return day of the week, where Monday == 0 ... Sunday == 6."
1235 return (self.toordinal() + 6) % 7
1236
1237 # Day-of-the-week and week-of-the-year, according to ISO
1238

Callers 12

_calc_julian_from_U_or_WFunction · 0.45
_strptimeFunction · 0.45
weekdayFunction · 0.45
time2netscapeFunction · 0.45
test_weekdayMethod · 0.45
test_more_timetupleMethod · 0.45
test_utctimetupleMethod · 0.45
first_sunday_on_or_afterFunction · 0.45
dstMethod · 0.45
dstMethod · 0.45
new_innerMethod · 0.45

Calls 1

toordinalMethod · 0.95

Tested by 7

test_weekdayMethod · 0.36
test_more_timetupleMethod · 0.36
test_utctimetupleMethod · 0.36
first_sunday_on_or_afterFunction · 0.36
dstMethod · 0.36
dstMethod · 0.36