Parse date / convert string to date time
t <- as.POSIXct(data$timestamp, format="%Y-%m-%d %H:%M:%S") as.double(t)