Displaying 1 result from an estimated 1 matches for "inteven".
Did you mean:
iteven
2010 May 24
2
AM/PM strptime %p failing 2.11.0 WinXP
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"