mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8331207: Misleading example in DateFormat#parse docs
Reviewed-by: naoto
This commit is contained in:
parent
aca1e8365b
commit
a863ef5d74
1 changed files with 2 additions and 1 deletions
|
@ -407,7 +407,8 @@ public abstract class DateFormat extends Format {
|
|||
|
||||
/**
|
||||
* Parse a date/time string according to the given parse position. For
|
||||
* example, a time text {@code "07/10/96 4:5 PM, PDT"} will be parsed into a {@code Date}
|
||||
* example, if {@code this} has the pattern {@code "M/d/yy h:m a, z"},
|
||||
* then a time text {@code "07/10/96 4:5 PM, PDT"} will be parsed into a {@code Date}
|
||||
* that is equivalent to {@code Date(837039900000L)}.
|
||||
*
|
||||
* <p> By default, parsing is lenient: If the input is not in the form used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue