Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_hms() fails to parse when the duration is longer than one day #107

Open
yutannihilation opened this issue Jul 2, 2022 · 0 comments

Comments

@yutannihilation
Copy link
Member

parse_hms() fails to parse when the time string represents a duration longer than one day.

hms::parse_hms("25:00:00")
#> NA

# this works
readr::parse_time("25:00:00")
#> 25:00:00

Created on 2022-07-02 by the reprex package (v2.0.1)

I guess this is the limitation of using strptime(), so I have no idea if this can be fixed.

hms/R/parse.R

Line 32 in 76063a8

strptime(as.character(x), format = format),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant