Isnt possible to do something like:

In [4]: s = s.split()

In [1]: s = "Mon Dec 19 11:06:12:333 CET 2005"
In [5]: s
Out[5]: ['Mon', 'Dec', '19', '11:06:12:333', 'CET', '2005']
In [6]: day = s[0]
In [7]: month = s[1]
In [8]: day_number = s[3]
In [9]: time = s[4]
In [10]: #....

? So you treat the datetime information using regex or another split method.

Cheers =]

Sent from the Python - python-list forum at Nabble.com:
Re: Parsing a date-time string?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to