date/time
Binu K S
binux.lists at gmail.com
Wed Jan 5 09:26:45 EST 2005
>>> import time
>>> time.strftime('%Y%m%d',time.localtime())
'20050105'
On Wed, 05 Jan 2005 15:08:37 +0100, Nader Emami <emami at knmi.nl> wrote:
> L.S.,
>
> Could somebody help me how I can get the next format of date
> from the time module?
>
> example: I have to have this time 20050105. It is the next
> attributes of format %Y%m%d.
>
> with regards,
> Nader
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list