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

(tz) Argument documentation incomplete for TimeZone.getAvailableIDs(int rawOffset)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • core-libs
    • b48
    • x86
    • windows_xp

      URL OF PROBLEM DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimeZone.html#getAvailableIDs(int)

      A DESCRIPTION OF THE PROBLEM :
      public static String[] getAvailableIDs(int rawOffset)

      In the Timezone class javadoc at http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimeZone.html#getAvailableIDs(int), the method getAvailableIDs(int rawOffset)
      does not explain that the rawOffset argument must be in the form of milliseconds, which I think it must be.

      For example:
      String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
      ###@###.### 2005-06-20 17:19:38 GMT

            okutsu Masayoshi Okutsu
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: