8331207: Misleading example in DateFormat#parse docs

Reviewed-by: naoto
This commit is contained in:
Justin Lu 2024-04-30 16:50:01 +00:00
parent aca1e8365b
commit a863ef5d74

@ -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