We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a nano timestamp from Influx of 1638842483690000000, the RFC3339 date in the result set should be 2021-12-07T02:01:23.690Z
1638842483690000000
2021-12-07T02:01:23.690Z
The resultset contains the timestamp 2021-12-07T02:01:23.689Z.
2021-12-07T02:01:23.689Z
This is because the timetoDate function divides the nano timestamp by Math.pow(10,6), which due to FP constraints results in 1638842483689.9998
timetoDate
Math.pow(10,6)
1638842483689.9998
Pull request incoming...
The text was updated successfully, but these errors were encountered:
fix: node-influx#606 - Timestamp conversion subject to floating point…
e6d68dd
… errors
02b4e46
Successfully merging a pull request may close this issue.
Expected Behavior
Given a nano timestamp from Influx of
1638842483690000000
, the RFC3339 date in the result set should be2021-12-07T02:01:23.690Z
Actual Behavior
The resultset contains the timestamp
2021-12-07T02:01:23.689Z
.This is because the
timetoDate
function divides the nano timestamp byMath.pow(10,6)
, which due to FP constraints results in1638842483689.9998
Steps/Code to Reproduce the Problem
1638842483690000000
2021-12-07T02:01:23.689Z
Pull request incoming...
The text was updated successfully, but these errors were encountered: