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.
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.
There's no
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
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 creating a data
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
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, ... :)
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
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
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 like to do