How to Determine Name of the Day in the Week

Fredrik Lundh fredrik at pythonware.com
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.

     http://docs.python.org/lib/module-time.html
     http://docs.python.org/lib/datetime-date.html

</F>




More information about the Python-list mailing list