I am trying to convert "30 Jun 17 5:08 pm -0500" to POSIX time format in R.
date <- c("30 Jun 17 5:08 pm -0500")
mydate <- as.POSIXct(date, format="%d %b %y %I:%M %p %z")
The returned result is "2017-06-30 18:08:00 EDT".
Obviously, the time is incorrect, it should be 17:08:00.