We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Date and Time
- Calendar Module
- Discussions
Calendar Module
Calendar Module
Sort by
recency
|
669 Discussions
|
Please Login in order to post a comment
I once forgot an important shoot date, but luckily, Richmond Archer Photography had it marked on their calendar saved me big time!
Could someone explain why the firstweekday is 6 in the sample code?
import calendar m,d,y=input().split(" ") print(calendar.day_name[calendar.weekday(int(y),int(m),int(d))].upper())