changeset 43007:4de62a95642c

8171348: Incorrect documentation for DateTimeFormatter letter 'k' Reviewed-by: rriggs Contributed-by: abhijit.r.roy@oracle.com
author rriggs
date Mon, 26 Dec 2016 23:20:57 +0530
parents e2fdc8ee8588
children c6c74a38f1ad
files jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java	Mon Dec 26 23:15:06 2016 +0530
+++ b/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java	Mon Dec 26 23:20:57 2016 +0530
@@ -297,7 +297,7 @@
  *   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
+ *   k       clock-hour-of-day (1-24)    number            24
  *
  *   H       hour-of-day (0-23)          number            0
  *   m       minute-of-hour              number            30
--- a/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Mon Dec 26 23:15:06 2016 +0530
+++ b/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Mon Dec 26 23:20:57 2016 +0530
@@ -1486,12 +1486,12 @@
      *   W       week-of-month               number            4
      *   E       day-of-week                 text              Tue; Tuesday; T
      *   e/c     localized day-of-week       number/text       2; 02; Tue; Tuesday; T
-     *   F       week-of-month               number            3
+     *   F       day-of-week-in-month        number            3
      *
      *   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
+     *   k       clock-hour-of-day (1-24)    number            24
      *
      *   H       hour-of-day (0-23)          number            0
      *   m       minute-of-hour              number            30