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

format.nanotime loses nanotime precision #12

Closed
lsilvest opened this issue Jan 30, 2017 · 2 comments
Closed

format.nanotime loses nanotime precision #12

lsilvest opened this issue Jan 30, 2017 · 2 comments

Comments

@lsilvest
Copy link
Collaborator

@lsilvest lsilvest commented Jan 30, 2017

Can be reproduced like this:

n <- nanotime("2120-01-01T00:00:59.987654321+00:00")
format(n)
## [1] "2120-01-01T00:00:59.987653809+00:00"
@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Jan 31, 2017

Confirmed. Probably a scaling issue similar to what we found in RcppCCTZ.

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Jan 31, 2017

Should be fixed in a branch I just added:

R> library(nanotime)
R> n <- nanotime("2120-01-01T00:00:59.987654321+00:00"); format(n)
[1] "2120-01-01T00:00:59.987654321+00:00"
R> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.