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

Incorrect documentation for DateTimeFormatter letter 'k'

    XMLWordPrintable

Details

    • b152
    • Not verified

    Description

      FULL PRODUCT VERSION :
      Not Applicable

      ADDITIONAL OS VERSION INFORMATION :
      Not Applicable

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Not Applicable

      A DESCRIPTION OF THE PROBLEM :
      In the documentation for DateTimeFormatter there is a table listing the pattern letters and their meaning. Part of it is:

       * a am-pm-of-day text PM
       * h clock-hour-of-am-pm (1-12) number 12
       * K hour-of-am-pm (0-11) number 0
       * k clock-hour-of-am-pm (1-24) number 0

      If you look, 'h' and 'k' have the same "clock-hour-of-am-pm" meaning listed, but I believe 'k' should be clock-hour-of-day instead.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Not Applicable

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Not Applicable
      ACTUAL -
      Not Applicable

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Not Applicable

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Not Applicable
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Not Applicable

      Attachments

        Activity

          People

            aroy Abhijit Roy (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: