serializing datetime object

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Jul 10 22:19:04 EDT 2007


En Tue, 10 Jul 2007 13:13:54 -0300, rkmr.em at gmail.com <rkmr.em at gmail.com>  
escribió:

> I want to serialize datetime.datetime.now() object . I could convert it  
> to
> string but how do I get a datetime object back from the string?
> Any suggestions?

Use the pickle module.

-- 
Gabriel Genellina




More information about the Python-list mailing list