[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: |
|
||||||||
| 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: Additionally adds a Time() method that returns a time.Time instance. |