Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-206

DOMEvent contains only event time with Date, which has insufficient precision

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Oxygen
    • None
    • DOM API
    • None
    • Operating System: All
      Platform: All

      If we want to deal with 6 digits precision at position of milliseconds, e. g. eventTime = "2015-10-23T09:42:27.200001Z", date class is insufficient. Parsing these strings causes wrong time in resulting Date object. Thus precision is only until milliseconds (2 digits).

      We found solution with using LocalDateTime from Java 8 where is precision until nanoseconds but it is not supporting now.

      Here is possible solution in controller:
      https://git.opendaylight.org/gerrit/#/c/47845/
      but it should be moved to md-sal as mentioned: "the corresponding API lives in MD-SAL."

            rovarga Robert Varga
            rudolf.brisuda@pantheon.tech Rudolf Brisuda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: