Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6238251

Unclear description for DatatypeFactory.newDurationDayTime(long) method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 5.0
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: