Re: Get the current date, python 2.2

2007-06-15 Thread Rob Williscroft
On Fri, 15 Jun 2007 14:46:20 -0700, nano wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > says... >> On Fri, 15 Jun 2007 14:30:36 -0700, nano wrote: >> >> > Using python 2.2 what is the simplest way to get the current date >> > value? I have looked in so many places. The question is o

Re: Get the current date, python 2.2

2007-06-15 Thread nano
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > On Fri, 15 Jun 2007 14:30:36 -0700, nano wrote: > > > Using python 2.2 what is the simplest way to get the current date value? > > I have looked in so many places. The question is often asked and the > > usual response indicates how to g

Re: Get the current date, python 2.2

2007-06-15 Thread Yongjian Xu
time.strftime('%Y-%m-%d', time.localtime()) gives you just the date format. Jim On 6/15/07, nano <[EMAIL PROTECTED]> wrote: Using python 2.2 what is the simplest way to get the current date value? I have looked in so many places. The question is often asked and the usual response indicates how

Re: Get the current date, python 2.2

2007-06-15 Thread Rob Williscroft
On Fri, 15 Jun 2007 14:30:36 -0700, nano wrote: > Using python 2.2 what is the simplest way to get the current date value? > I have looked in so many places. The question is often asked and the > usual response indicates how to get the current date and time like > > now = time.localtime() > > I

Get the current date, python 2.2

2007-06-15 Thread nano
Using python 2.2 what is the simplest way to get the current date value? I have looked in so many places. The question is often asked and the usual response indicates how to get the current date and time like now = time.localtime() I want just the date, like 2007-06-15. The value will go into