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

Unclear description for DatatypeFactory.newDurationDayTime(long) method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Not an Issue
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: xml
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: