changed as.POSIXlt() to strptime()