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

Method fromisocalendar

Lib/_pydatetime.py:1067–1071  ·  view source on GitHub ↗

Construct a date from the ISO year, week number and weekday. This is the inverse of the date.isocalendar() function

(cls, year, week, day)

Source from the content-addressed store, hash-verified

1065
1066 @classmethod
1067 def fromisocalendar(cls, year, week, day):
1068 """Construct a date from the ISO year, week number and weekday.
1069
1070 This is the inverse of the date.isocalendar() function"""
1071 return cls(*_isoweek_to_gregorian(year, week, day))
1072
1073 @classmethod
1074 def strptime(cls, date_string, format):

Callers 4

_strptimeFunction · 0.80
test_fromisocalendarMethod · 0.80

Calls 2

_isoweek_to_gregorianFunction · 0.85
clsClass · 0.50