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

Calendar - explanation of time is wrong when it refers to 24:00:00

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: yyT116575 Date: 07/09/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      Documentation error: The Java 2 Platform SE has the following explantion in the
      Calendar class documentation.

      Note: There are certain possible ambiguities in interpretation of certain
      singular times, which are resolved in the following ways:

      1. 24:00:00 "belongs" to the following day. That is, 23:59 on Dec 31, 1969 <
      24:00 on Jan 1, 1970 < 24:01:00 on Jan 1, 1970

      There is no such time as 24:00 as 23:59 is the last minute of one day and 00:00
      is the first minute of the next day.

      the explanation should read as follows.

      1. 23:59 is the last minute of the day and 00:00 is the first minute of the
      next day. Thus, 23:59 on Dec 31, 1999 < 00:00 on Jan 1, 2000 < 00:01 on Jan 1,
      2000.
      (Review ID: 127712)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: