>>> import time >>> time.strftime('%Y%m%d',time.localtime()) '20050105'
On Wed, 05 Jan 2005 15:08:37 +0100, Nader Emami <[EMAIL PROTECTED]> 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 > -- http://mail.python.org/mailman/listinfo/python-list