8 messages in com.googlegroups.google-appengine[google-appengine] Re: datetime.datet...
FromSent OnAttachments
Esben06 Jul 2008 08:37 
GAEfan06 Jul 2008 12:29 
Esben07 Jul 2008 00:18 
Esben07 Jul 2008 08:54 
Patrick Lewis07 Jul 2008 12:54 
Patrick Lewis07 Jul 2008 13:41 
Esben08 Jul 2008 06:55 
Patrick Lewis08 Jul 2008 07:26 
Subject:[google-appengine] Re: datetime.datetime.now() reporting error on dev_appserver
From:Patrick Lewis (patr@gmail.com)
Date:07/07/2008 12:54:46 PM
List:com.googlegroups.google-appengine

On Jul 7, 11:54 am, Esben <es.@ofn.dk> wrote:

I tried the above, but to no avail: now=datetime.now Results in the error: AttributeError: 'module' object has no attribute 'now' now=datetime.datetime.now works but then: ds = now.strftime('%m'/'%d'/'%Y') Results in the error: AttributeError: 'builtin_function_or_method' object has no attribute 'strftime'

Anyone else care to take a shot?

now is a function.

now = datetime.datetime.now()