Hello lubridate team,
After the last update (version 1.5.6), the parse_date_time and ymd_h* functions fail to parse dates when the hour format includes the somewhat special case of 24 hours. The help file of the function still states that hours can take the form 0--24 and strftime performs as expected. An example:
library(lubridate)
# An example
date_string <- "2016-05-24 24:00:00"
# Both cases fail
ymd_hms(date_string, tz = "UTC")
parse_date_time(date_string, orders = "ymd hms", tz = "UTC")
# Works correctly, first instant of next day
strftime(date_string, tz = "UTC")
Is this a deliberate regression? Many thanks.
Hello lubridate team,
After the last update (version 1.5.6), the
parse_date_timeandymd_h*functions fail to parse dates when the hour format includes the somewhat special case of 24 hours. The help file of the function still states that hours can take the form 0--24 andstrftimeperforms as expected. An example:Is this a deliberate regression? Many thanks.