Find day of week from month and year
Laguna
ed_zeng at yahoo.com
Fri Sep 2 16:46:04 EDT 2005
More information about the Python-list mailing list
Fri Sep 2 16:46:04 EDT 2005
- Previous message (by thread): Find day of week from month and year
- Next message (by thread): Find day of week from month and year
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Paul, Thanks for the suggestion on calendar module. Here is my solution and it works: def expiration(year, month): weekday = calendar.weekday(year, month, 1) table = [19, 18, 17, 16, 15, 21, 20] return table[weekday] Cheers, Laguna
- Previous message (by thread): Find day of week from month and year
- Next message (by thread): Find day of week from month and year
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list