I donโt understand why strptime does not recognize the %p format. However, the dmy_hms function from the lubridate package works well.
lubridate::dmy_hms("19-Jun-13 06.00.00.00 PM") produces the following result:
[1] "2013-06-19 18:00:00 UTC"
which you can "reformat" if you want, say Ymd H: M:
as.POSIXct(dmy_hms("19-Jun-13 06.00.00.00 PM"), format="%Y-%m-%d %H:%M") [1] "2013-06-19 18:00:00 UTC"
Phill source share