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

Improvements to TimeSpanUnits and TimeSpanSerializer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.8
    • 1.7
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: