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

Method weekday

Lib/_pydatetime.py:1248–1250  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1246 return NotImplemented
1247
1248 def weekday(self):
1249 "Return day of the week, where Monday == 0 ... Sunday == 6."
1250 return (self.toordinal() + 6) % 7
1251
1252 # Day-of-the-week and week-of-the-year, according to ISO
1253

Callers 14

_isdstMethod · 0.45
first_sunday_on_or_afterFunction · 0.45
_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

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