Re: How to Determine Name of the Day in the Week

2008-09-18 Thread Mensanator
On Sep 18, 12:01 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 17 Sep 2008 20:34:02 -0700, Mensanator wrote: > > And technically, weeks begin on Sunday, not Monday, but business likes > > to think of Monday as day 0 of the week and it doesn't conflict with any > > prior date format. > >

Re: How to Determine Name of the Day in the Week

2008-09-18 Thread Fredrik Lundh
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.

Re: How to Determine Name of the Day in the Week

2008-09-17 Thread Steven D'Aprano
On Wed, 17 Sep 2008 20:34:02 -0700, Mensanator wrote: > And technically, weeks begin on Sunday, not Monday, but business likes > to think of Monday as day 0 of the week and it doesn't conflict with any > prior date format. There's no "technically" about it. It's an arbitrary starting point, and

Re: How to Determine Name of the Day in the Week

2008-09-17 Thread Mensanator
On Sep 17, 10:20 pm, Keo Sophon <[EMAIL PROTECTED]> wrote: > Fredrik Lundh wrote: > > Henry Chang wrote: > > >> Instead of getting integers with weekday(), Monday == 0 ... Sunday == > >> 6; is there a way to get the actual names, such as "Monday ... > >> Sunday"? I would like to do this without cre

Re: How to Determine Name of the Day in the Week

2008-09-17 Thread Keo Sophon
Fredrik Lundh wrote: Henry Chang wrote: Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; is there a way to get the actual names, such as "Monday ... Sunday"? I would like to do this without creating a data mapping. :) if you have a datetime or date object, you can use

Re: How to Determine Name of the Day in the Week

2008-09-11 Thread Tino Wildenhain
Henry Chang wrote: Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; is there a way to get the actual names, such as "Monday ... Sunday"? I would like to do this without creating a data mapping. :) The 'actual names' in which language? Chinese, Russian, French, ... :)

Re: How to Determine Name of the Day in the Week

2008-09-11 Thread Henry Chang
Awesome, that worked. Thanks so much! On Thu, Sep 11, 2008 at 10:16 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Henry Chang wrote: > > Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; >> is there a way to get the actual names, such as "Monday ... Sunday"? I >> would l

Re: How to Determine Name of the Day in the Week

2008-09-11 Thread Fredrik Lundh
Henry Chang wrote: Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; is there a way to get the actual names, such as "Monday ... Sunday"? I would like to do this without creating a data mapping. :) if you have a datetime or date object, you can use strftime with the

How to Determine Name of the Day in the Week

2008-09-11 Thread Henry Chang
Instead of getting integers with weekday(), Monday == 0 ... Sunday == 6; is there a way to get the actual names, such as "Monday ... Sunday"? I would like to do this without creating a data mapping. :) -- http://mail.python.org/mailman/listinfo/python-list