Skip to content

fix: sub-second value parsing accurately - #128

Merged
krlmlr merged 1 commit into
tidyverse:mainfrom
eitsupi:support-sub-second
Nov 18, 2024
Merged

krlmlr merged 1 commit into
tidyverse:mainfrom
eitsupi:support-sub-second

Conversation

@eitsupi

@eitsupi eitsupi commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

Fix #127

@krlmlr krlmlr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking this down! Just curious, what's the rationale of removing parse_time()?

@eitsupi

eitsupi commented Nov 14, 2024

Copy link
Copy Markdown
Contributor Author

what's the rationale of removing parse_time()?

There was no particular intent; I fixed it in the way that parse_time() was rewritten.

As an aside, I think this function is worth exporting in a follow-up PR.

@eitsupi

eitsupi commented Nov 17, 2024

Copy link
Copy Markdown
Contributor Author

@krlmlr Could you check this?

@krlmlr
krlmlr added this pull request to the merge queue Nov 18, 2024
@krlmlr

krlmlr commented Nov 18, 2024

Copy link
Copy Markdown
Member

Thanks! The check might be prone to floating-point errors, we'll see.

Merged via the queue into tidyverse:main with commit 4b06c80 Nov 18, 2024
@eitsupi
eitsupi deleted the support-sub-second branch November 18, 2024 03:14
@eitsupi

eitsupi commented Nov 18, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for merging!

krlmlr added a commit that referenced this pull request Oct 25, 2025
hms 1.1.4

- Sub-second value parsing accurately (@eitsupi, #127, #128).

- `is.hms()` and `as.hms()` now warn even when called indirectly (@moodymudskipper, #121, #163).

- Implement `ceiling_hms()` and `floor_hms()` (@moodymudskipper, #118, #160).

- Parsing now holds the date part fixed, removing unlikely errors during clock wraparound.

- Spring cleaning (@schochastics, #174, #175).

- Use rlang instead of ellipsis (#106).
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_hms() cannot convert sub-second time accurately

2 participants