Re: converting time tuple to datetime struct
Yeah, that was just an oversight while retyping the code. Thanks from the prompt reply, it was just what I needed. Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: converting time tuple to datetime struct
[your "%b" is supposed to be the abbreviated month name, not the number. Try "%m"] In [19]: datetime.datetime(*time.strptime("20-3-2005","%d-%m-%Y")[:6]) Out[19]: datetime.datetime(2005, 3, 20, 0, 0) Cheers, George -- http://mail.python.org/mailman/listinfo/python-list