tidyverse / hms

A simple class for storing time-of-day values
https://hms.tidyverse.org/
Other
138 stars 25 forks source link

as.hms should be able to parse if no seconds #30

Closed hadley closed 7 years ago

hadley commented 7 years ago
> hms::as.hms("05:00")
NA
krlmlr commented 7 years ago

We could support as.hms("05:00", "%H:%M"), but I'm not sure we should accept this unconditionally.?

hadley commented 7 years ago

Unconditionally seems reasonable to me

krlmlr commented 7 years ago

Added parse_hm() and parse_hms(), because I think it's better to be explicit. as.hms() forwards to parse_hms().

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.