I am attempting to import dates in the following format to R:
5/20/2010 6:45:32 PM

Unfortunately I am unable to get the AM/PM function (%p) to work correctly
under either 2.11.0 or 2.8.1.
> strptime("5/20/2010 6:45:32 PM", "%m/%d/%Y %I:%M:%S %p")
[1] NA

but
> strptime("5/20/2010 6:45:32", "%m/%d/%Y %I:%M:%S")
[1] "2010-05-20 06:45:32"

showing that the problem is with %p.

I could only find one previous mention of this issue in the archives (
http://tolstoy.newcastle.edu.au/R/e2/help/06/11/6272.html) , which provided
no solution beyond upgrading R (which I have done), and just suggested it
was a problem with that particular installation of R and Windows.

What could I do to get this function working on my Windows XP machine?

Thankyou,

Samuel Dennis
sjdennis3@gmail.com

	[[alternative HTML version deleted]]

