How to Determine Name of the Day in the Week

Fredrik Lundh fredrik at
Thu Sep 18 11:26:09 CEST 2008

Keo Sophon wrote:

> I've tried calendar.month_name[0], it displays empty string, while 
> calendar.month_name[1] is "January"? Why does calendar.month_name's 
> index not start with index 0 as calendar.day_name?

the lists are set up to match the values used by the time and datetime 
modules; see e.g.


More information about the Python-list mailing list