Closed schochastics closed 6 months ago
chronos::chronos("30/03/1997 02:43:12")
#> Error in parse_datetime_rs(x, formats, out_datetime): user function panicked: parse_datetime_rs
chronos::chronos("30/03/1997 01:43:12")
#> [1] "1997-03-30 01:43:12 CET"
Created on 2024-02-26 with reprex v2.1.0
R> as.POSIXct("30/03/1997 01:43:12",format="%d/%m/%Y %H:%M:%S")
[1] "1997-03-30 01:43:12 CET"
R> as.POSIXct("30/03/1997 02:43:12",format="%d/%m/%Y %H:%M:%S")
[1] "1997-03-30 01:43:12 CET"
chronos::chronos("Sunday, 28 September 1986 02:06 AM")
#> thread '<unnamed>' panicked at src/lib.rs:31:64:
#>Ambiguous local time, ranging from 1986-09-28T02:06:00+01:00 to 1986-09-28T02:06:00+02:00
#>thread '<unnamed>' panicked at src/lib.rs:20:1:
#>explicit panic
#> Error in parse_datetime_rs(x, formats, out_datetime): user function panicked: parse_datetime_rs
Created on 2024-02-26 with reprex v2.1.0
turns out, I forgot that daylight savings exists...
Created on 2024-02-26 with reprex v2.1.0