I have the following character vector:
times <- c("2020-04-15T03:30:05.197Z", "2020-04-15T03:30:05.366Z", "2020-04-15T03:30:05.530Z")
I need to first convert it to a lubridate
datetime object or a POSIXct object - I'm not picky. The following does not work:
as_datetime(link_log$createdAt,
format = "%Y-%m-%d%T%H:%M:%S")
To be honest, I'm not sure what's going on with the end of each element. What is the .197Z, .366Z, .530Z? I am assuming these are the problem!