8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash
Reviewed-by: rriggs, darcy, iris, lancea
This commit is contained in:
parent
2bd4136bdb
commit
ec45bd64d5
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -782,10 +782,10 @@ public final class DateTimeFormatter {
|
||||
* <li>Four digits or more for the {@link ChronoField#YEAR year}.
|
||||
* Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
||||
* Years outside that range will have a prefixed positive or negative symbol.
|
||||
* <li>A dash
|
||||
* <li>A hyphen ('HYPHEN-MINUS', U+002D)
|
||||
* <li>Two digits for the {@link ChronoField#MONTH_OF_YEAR month-of-year}.
|
||||
* This is pre-padded by zero to ensure two digits.
|
||||
* <li>A dash
|
||||
* <li>A hyphen ('HYPHEN-MINUS', U+002D)
|
||||
* <li>Two digits for the {@link ChronoField#DAY_OF_MONTH day-of-month}.
|
||||
* This is pre-padded by zero to ensure two digits.
|
||||
* </ul>
|
||||
@ -1115,7 +1115,7 @@ public final class DateTimeFormatter {
|
||||
* <li>Four digits or more for the {@link ChronoField#YEAR year}.
|
||||
* Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
||||
* Years outside that range will have a prefixed positive or negative symbol.
|
||||
* <li>A dash
|
||||
* <li>A hyphen ('HYPHEN-MINUS', U+002D)
|
||||
* <li>Three digits for the {@link ChronoField#DAY_OF_YEAR day-of-year}.
|
||||
* This is pre-padded by zero to ensure three digits.
|
||||
* <li>If the offset is not available to format or parse then the format is complete.
|
||||
@ -1155,11 +1155,11 @@ public final class DateTimeFormatter {
|
||||
* <li>Four digits or more for the {@link IsoFields#WEEK_BASED_YEAR week-based-year}.
|
||||
* Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
||||
* Years outside that range will have a prefixed positive or negative symbol.
|
||||
* <li>A dash
|
||||
* <li>A hyphen ('HYPHEN-MINUS', U+002D)
|
||||
* <li>The letter 'W'. Parsing is case insensitive.
|
||||
* <li>Two digits for the {@link IsoFields#WEEK_OF_WEEK_BASED_YEAR week-of-week-based-year}.
|
||||
* This is pre-padded by zero to ensure three digits.
|
||||
* <li>A dash
|
||||
* <li>A hyphen ('HYPHEN-MINUS', U+002D)
|
||||
* <li>One digit for the {@link ChronoField#DAY_OF_WEEK day-of-week}.
|
||||
* The value run from Monday (1) to Sunday (7).
|
||||
* <li>If the offset is not available to format or parse then the format is complete.
|
||||
|
Loading…
x
Reference in New Issue
Block a user