Convert text timestamps in a format according to ISO 8601 to POSIXct objects
isoToLocaltime(timestamps, dbg = TRUE)
timestamps | vector of character timestamps of format |
---|---|
dbg | if |
times <- isoToLocaltime(c( "2017-10-29 01:00:00+0200", "2017-10-29 01:30:00+0200", "2017-10-29 02:00:00+0200", "2017-10-29 02:30:00+0200", "2017-10-29 02:00:00+0100", "2017-10-29 02:30:00+0100", "2017-10-29 03:00:00+0100", "2017-10-29 03:30:00+0100" ))#> Converting 8 timestamps ... ok.#> [1] "POSIXct" "POSIXt"