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 without seconds #111

Open
gregorp opened this issue Aug 31, 2022 · 0 comments
Open

Parse without seconds #111

gregorp opened this issue Aug 31, 2022 · 0 comments

Comments

@gregorp
Copy link

gregorp commented Aug 31, 2022

Not sure if this is a dupe of #30, but I'd expect as_hms to work without seconds, or at least give an intelligible warning or error.

hms::as_hms("08:00")
Error in `abort_lossy_cast()`:
! Lossy cast from <character> to <hms> at position(s) 1
Run `rlang::last_error()` to see where the error occurred.

Inspired by this Stack Overflow question where a user without seconds couldn't figure out what was going wrong.

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