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

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

    XMLWordPrintable

Details

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

    Description

      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."

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: