py3k: datetime resolution / isoformat

yves at zioup.com yves at zioup.com
Sat Feb 26 15:57:34 CET 2011


On 11-02-25 07:49 PM, Ned Deily wrote:
>>>> datetime.datetime.now().replace(microsecond=0).isoformat()
> '2011-02-25T18:48:24'
>

Ah, Thanks!

-- 
Yves.                                                  http://www.SollerS.ca/
                                                        http://blog.zioup.org/



More information about the Python-list mailing list