Issue 23398: calendar.monthrange for February 2015 (original) (raw)

Issue23398

Created on 2015-02-05 18:29 by skarpovsky, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg235440 - (view) Author: Sergiy (skarpovsky) Date: 2015-02-05 18:29
>>>print(calendar.monthrange(2015,2)) (6, 28) February has only 5 weeks.
msg235442 - (view) Author: Geoffrey Spear (geoffreyspear) * Date: 2015-02-05 18:37
"Returns weekday of first day of the month and number of days in month, for the specified year and month.". The 6 means February began on a Sunday, not that there are 6 weeks in the month.
msg235443 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2015-02-05 18:44
https://docs.python.org/3/library/calendar.html#calendar.monthrange
History
Date User Action Args
2022-04-11 14:58:12 admin set github: 67587
2015-02-05 18:44:56 ethan.furman set status: open -> closednosy: + ethan.furmanmessages: + resolution: not a bugstage: resolved
2015-02-05 18:37:25 geoffreyspear set nosy: + geoffreyspearmessages: +
2015-02-05 18:29:54 skarpovsky create