MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / weekday

Function weekday

tools/python-3.11.9-amd64/Lib/calendar.py:115–119  ·  view source on GitHub ↗

Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).

(year, month, day)

Source from the content-addressed store, hash-verified

113
114
115def weekday(year, month, day):
116 """Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31)."""
117 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
118 year = 2000 + year % 400
119 return datetime.date(year, month, day).weekday()
120
121
122def monthrange(year, month):

Callers 1

monthrangeFunction · 0.85

Calls 2

weekdayMethod · 0.45
dateMethod · 0.45

Tested by

no test coverage detected