Hello,
I have an issue with data that I am trying to convert to datetime. It has
'a.m.' rather than 'am' and the %p format doesn't seem to work. I am pretty
sure there should be an easy solution. That said I can not see it at the
moment. the following illustrates the issue. test1 and test2
On ma, 2010-02-08 at 13:02 -0800, bevan j wrote:
data = '1/09/1978 1:00:00 a.m.'
If you know this will always be in the form of 'a.m.' you can replace it
with 'am' by data.replace('a.m.','am').
Greets
Sander
___
Tutor maillist - Tutor@python.org