[GODRIVER-513] Value.DateTime should return an int64 Created: 30/Jul/18  Updated: 28/Oct/23  Resolved: 06/Sep/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.10
Fix Version/s: 0.0.13

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Mathew Robinson (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-494 BSON Codec Redesign Closed

 Description   

The *bson.Value type's DateTime method currently returns a time.Time instance. The Element constructor takes an int64 for it's DateTime method and has a Time method to build a DateTime element with a time.Time instance.

Update the *bson.Value type to have the DateTime method return an int64 and add a Time method that returns a time.Time instance.



 Comments   
Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Mathew Robinson', 'email': 'chasinglogic@gmail.com', 'username': 'chasinglogic'}

Message: GODRIVER-513 Make Value.DateTime() return int64

Additionally adds a Time() method that returns a time.Time instance.
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/b0012443300bbc15546b67da65a17739b7f41882

Generated at Thu Feb 08 08:34:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.