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

RFE: java.text.DateFormat needs "time duration" instance

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.1.5
    • core-libs
    • x86
    • windows_95



      Name: rm29839 Date: 01/28/98


      I need to parse/format time durations, like
      10 hours, 6 minutes, 23 seconds into an
      integer, i.e. the number of milliseconds,
      in a locale-aware way.

      For the US English Locale, for example,
      123:04:20 should be 123 hours + 4 minutes
      + 20 seconds. Other locales user different
      separators and/or ordering.

      The current DateFormat is not appropriate for
      this. A Date is a specific instance in time.
      How would one parse "12-Jun-98 10:32 AM" into
      a time duration?
      (Review ID: 23685)
      ======================================================================

            aliusunw Alan Liu (Inactive)
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: