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

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

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

@eddelbuettel
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants