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

Encoding/Decoding time.Duration to/from int64 #373

Closed
wants to merge 1 commit into from

Conversation

smoya
Copy link

@smoya smoya commented Dec 16, 2016

This PR allows to convert properly a time.Duration to milliseconds, following the approach of Date bson type (stores in milliseconds too) in order to be able to add or subtract durations in mongo.

@gonzaloserrano
Copy link

👍

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 this pull request may close these issues.

2 participants