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

Fractional seconds are not captured #44

Open
billdenney opened this issue Aug 3, 2024 · 2 comments · May be fixed by #48
Open

Fractional seconds are not captured #44

billdenney opened this issue Aug 3, 2024 · 2 comments · May be fixed by #48

Comments

@billdenney
Copy link
Contributor

library(parsedate)
# positive hour timezone with minutes and fractional seconds
dput(
  parse_iso_8601("2024-08-03T01:02:03.123+04:15")
)
#> structure(1722631623, class = c("POSIXct", "POSIXt"), tzone = "UTC")
# fractional seconds are not captured
dput(
  as.POSIXct("2024-08-03 01:02:03.123")
)
#> structure(1722661323.123, class = c("POSIXct", "POSIXt"), tzone = "")

Created on 2024-08-03 with reprex v2.1.1

@billdenney
Copy link
Contributor Author

This was an issue that I caused during other changes. It is not an issue, but I'm leaving a test for it because I don't think it's specifically tested elsewhere.

billdenney added a commit to billdenney/parsedate that referenced this issue Aug 3, 2024
@billdenney
Copy link
Contributor Author

... And, it turns out that this is an issue after all, but it is masked by r-lib/testthat#1977.

@billdenney billdenney linked a pull request Oct 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant