Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-647

Improvements to TimeSpanUnits and TimeSpanSerializer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8
    • Affects Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: