strftime - %a is always Monday ?

Jeff Epler jepler at
Mon Dec 29 14:46:03 CET 2003

On Mon, Dec 29, 2003 at 02:39:13PM +0100, Gerrit Holl wrote:
> time.strftime does not know about dates. Field number 6 specifies the
> weekday: make it a 1 and it will say Tuesday, 2->Wednesday, etc. You may
> want to use the new datetime module:
> >>>,12,7).strftime("%A")
> 'Sunday'

Sounds like much better advice than mine!


More information about the Python-list mailing list