Unclear description for DatatypeFactory.newDurationDayTime(long) method

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • None
    • Affects Version/s: 5.0
    • Component/s: xml
    • generic
    • generic

      In the javax.xml.datatype.DatatypeFactory class there is a factory method public Duration newDurationDayTime(long durationInMilliseconds) that has following description:
        Any remaining milliseconds after determining the day, hour, minute and second are discarded.

      But the W3C XML Schema 1.0 Part 2, Appendix D, ISO 8601 Date and Time Formats says:
      ...the whole number of seconds ·may· be followed by decimal seconds to an arbitrary level of precision.

      So it is not known what is remaining milliseconds that should be discarded.


      ###@###.### 2005-03-09 16:44:26 GMT

            Assignee:
            Unassigned
            Reporter:
            Yury Danilevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: