-
Notifications
You must be signed in to change notification settings - Fork 286
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
Implement col_duration() #549
Comments
Reprex is library(readr)
parse_time("24:56:18.90", format = "%H:%M:%S")
#> Warning: 1 parsing failure.
#> row col expected actual
#> 1 -- valid date 24:56:18.90
#> NA |
This is unfortunately tricky to implement with the current implementation |
This needs a completely new collector for durations. |
Same for negative times: readr::parse_time("-12:34:56")
#> Warning: 1 parsing failure.
#> row col expected actual
#> 1 -- time like -12:34:56
#> NA Created on 2019-10-03 by the reprex package (v0.3.0) Can we solve it by a new placeholder |
We have the new placeholder, so I think that should be sufficient to close this. |
I have a table of time durations in hms format. The number of hours can be greater than 24. Parsing this column with
col_time
fails withMy workaround is to use
col_string
and then parse the time format withhms(roll=TRUE)
. My suggestion for possible solutions would be to either add acol_duration
parser, or add aroll=TRUE
parameter tocol_time
.The text was updated successfully, but these errors were encountered: