tidyverse / lubridate

Make working with dates in R just that little bit easier
https://lubridate.tidyverse.org
GNU General Public License v3.0
724 stars 207 forks source link

'OO' format option not recognized for parsing ISO 8601 time zone offsets #1147

Open jchorton opened 8 months ago

jchorton commented 8 months ago

The issue is that the OO format option from the documentation is not recognized. The following line results in an error:

guessed_formats <- guess_formats("2023-11-01T12:00-06:00", "YmdHMOO", print_matches=TRUE)

If I adjust the datetime to match another format, like removing the : and using the Oz instead, then it does work:

guessed_formats <- guess_formats("2023-11-01T12:00-0600", "YmdHMOz", print_matches=TRUE)