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

Converting timestamps to mongodb loses information #40

Open
MyK00L opened this issue Oct 13, 2021 · 2 comments
Open

Converting timestamps to mongodb loses information #40

MyK00L opened this issue Oct 13, 2021 · 2 comments

Comments

@MyK00L
Copy link
Owner

MyK00L commented Oct 13, 2021

No description provided.

@eutampieri
Copy link
Collaborator

Could you please elaborate?

@MyK00L
Copy link
Owner Author

MyK00L commented Oct 14, 2021

Could you please elaborate?

bson::Timestamp {

timestamps have:

secs: u64,
nanos: u32, // Always 0 <= nanos < NANOS_PER_SEC

the way we are converting now, sub-second information is lost

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