|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -782,10 +782,10 @@ public static DateTimeFormatter ofLocalizedPattern(String requestedTemplate) {
|
782 | 782 | * <li>Four digits or more for the {@link ChronoField#YEAR year}.
|
783 | 783 | * Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
784 | 784 | * Years outside that range will have a prefixed positive or negative symbol.
|
785 |
| - * <li>A dash |
| 785 | + * <li>A hyphen ('HYPHEN-MINUS', U+002D) |
786 | 786 | * <li>Two digits for the {@link ChronoField#MONTH_OF_YEAR month-of-year}.
|
787 | 787 | * This is pre-padded by zero to ensure two digits.
|
788 |
| - * <li>A dash |
| 788 | + * <li>A hyphen ('HYPHEN-MINUS', U+002D) |
789 | 789 | * <li>Two digits for the {@link ChronoField#DAY_OF_MONTH day-of-month}.
|
790 | 790 | * This is pre-padded by zero to ensure two digits.
|
791 | 791 | * </ul>
|
@@ -1115,7 +1115,7 @@ public static DateTimeFormatter ofLocalizedPattern(String requestedTemplate) {
|
1115 | 1115 | * <li>Four digits or more for the {@link ChronoField#YEAR year}.
|
1116 | 1116 | * Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
1117 | 1117 | * Years outside that range will have a prefixed positive or negative symbol.
|
1118 |
| - * <li>A dash |
| 1118 | + * <li>A hyphen ('HYPHEN-MINUS', U+002D) |
1119 | 1119 | * <li>Three digits for the {@link ChronoField#DAY_OF_YEAR day-of-year}.
|
1120 | 1120 | * This is pre-padded by zero to ensure three digits.
|
1121 | 1121 | * <li>If the offset is not available to format or parse then the format is complete.
|
@@ -1155,11 +1155,11 @@ public static DateTimeFormatter ofLocalizedPattern(String requestedTemplate) {
|
1155 | 1155 | * <li>Four digits or more for the {@link IsoFields#WEEK_BASED_YEAR week-based-year}.
|
1156 | 1156 | * Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits.
|
1157 | 1157 | * Years outside that range will have a prefixed positive or negative symbol.
|
1158 |
| - * <li>A dash |
| 1158 | + * <li>A hyphen ('HYPHEN-MINUS', U+002D) |
1159 | 1159 | * <li>The letter 'W'. Parsing is case insensitive.
|
1160 | 1160 | * <li>Two digits for the {@link IsoFields#WEEK_OF_WEEK_BASED_YEAR week-of-week-based-year}.
|
1161 | 1161 | * This is pre-padded by zero to ensure three digits.
|
1162 |
| - * <li>A dash |
| 1162 | + * <li>A hyphen ('HYPHEN-MINUS', U+002D) |
1163 | 1163 | * <li>One digit for the {@link ChronoField#DAY_OF_WEEK day-of-week}.
|
1164 | 1164 | * The value run from Monday (1) to Sunday (7).
|
1165 | 1165 | * <li>If the offset is not available to format or parse then the format is complete.
|
|
0 commit comments