Skip to content

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

Closed
smoya wants to merge 1 commit into
go-mgo:v2-unstablefrom
smoya:feature/timeDuration
Closed

smoya wants to merge 1 commit into
go-mgo:v2-unstablefrom
smoya:feature/timeDuration

Conversation

@smoya

@smoya smoya commented Dec 16, 2016

Copy link
Copy Markdown

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.

@smoya
smoya force-pushed the feature/timeDuration branch from 4c61aff to dee495f Compare December 16, 2016 12:43
@gonzaloserrano

Copy link
Copy Markdown

👍

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

⌂ 换网址