Convert from/to struct_time

Diez B. Roggisch deets at nospam.web.de
Sun Apr 22 14:00:50 EDT 2007


Florian Lindner schrieb:
> Hello,
> I have a struct_time and a datetime object and need compare them. Is there
> any function that converts either of these two to another?


datetime.datetime(*time.localtime()[:6])

Diez



More information about the Python-list mailing list