schochastics / timeless

A general purpose date(time) parser for R
https://schochastics.github.io/timeless/
Other
21 stars 2 forks source link

proper timezone handling #1

Closed schochastics closed 9 months ago

schochastics commented 9 months ago

timezones need handling. Return value is always UTC

time <- Sys.time()
time
#> [1] "2024-02-24 14:15:23 CET"
chronos::chronos(as.character(time))
#> [1] "2024-02-24 13:15:23"
chronos::chronos(chronos::chronos(as.character(time)))
#> [1] "2024-02-24 12:15:23"

Created on 2024-02-24 with reprex v2.1.0

Created on 2024-02-24 with reprex v2.1.0 probably with parse_with_timezone.