Uwe Mayer wrote:
Hi,

I've got a ISO 8601 formatted date-time string which I need to read into a
datetime object.

Something like this (adjust the format to suit): import datetime, time dt = datetime.datetime(*time.strptime(data, "%Y-%m-%d %H:%M:%S")[:6])

Kent
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to