[CSHARP-647] Improvements to TimeSpanUnits and TimeSpanSerializer Created: 13/Dec/12  Updated: 20/Mar/14  Resolved: 17/Dec/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.7
Fix Version/s: 1.8

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-646 Fix various serialization bugs in Sys... Closed

 Description   

Improvements and fixes to TimeSpanUnits and TimeSpanSerializer:

1. Add a new Microseconds value to the TimeSpanUnits enum
2. Fix multipliers for Nanoseconds in TimeSpanSerializer
3. Fix precision issues in TimeSpanSerializer (see note)

Note: the precision issues in TimeSpanSerializer are courtesy of Microsoft implementing the FromMilliseconds and all other FromXyz methods to limit the precision of the value to milliseconds instead of ticks. Not sure why they did that... The work around is to always use FromTicks instead.



 Comments   
Comment by auto [ 17/Dec/12 ]

Author:

{u'date': u'2012-12-16T22:21:38Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-647: Improvements to TimeSpanUnits and TimeSpanSerializer.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7be975692fa2502834cd3a48d81bf8e2c4fd1640

Generated at Wed Feb 07 21:37:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.