From 30920d9cd9a5a23a1253c729f30807201f9fd733 Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Tue, 23 Sep 2014 21:26:54 +0000 Subject: [PATCH] ICU-10809 Update SimpleDateFormat class doc examples for Sept and Tues, other table updates and note (J) X-SVN-Rev: 36566 --- .../com/ibm/icu/text/SimpleDateFormat.java | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java index 7d3fc8448c8..bf7f59843cd 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java @@ -67,7 +67,8 @@ import com.ibm.icu.util.ULocale.Category; * as pattern letters representing calendar fields. SimpleDateFormat supports * the date and time formatting algorithm and pattern letters defined by UTS#35 * Unicode Locale Data Markup Language (LDML). The following pattern letters are - * currently available:

+ * currently available (note that the actual values depend on CLDR and may change from the + * examples shown here):

*
* * @@ -83,7 +84,7 @@ import com.ibm.icu.util.ULocale.Category; * * * + * abbreviated form, four letters for the long (wide) form, five for the narrow form. * * * @@ -178,7 +179,7 @@ import com.ibm.icu.util.ULocale.Category; * * @@ -197,7 +198,7 @@ import com.ibm.icu.util.ULocale.Category; * * * + * for the full (wide) name (five for the narrow name is not yet supported). * * * @@ -212,7 +213,7 @@ import com.ibm.icu.util.ULocale.Category; * * * + * or four for the full name (five for the narrow name is not yet supported). * * * @@ -228,11 +229,12 @@ import com.ibm.icu.util.ULocale.Category; * * * + * the full (wide) name, or five for the narrow name. With two ("MM"), the month number is zero-padded + * if necessary (e.g. "08"). * * * - * + * * * * @@ -247,11 +249,12 @@ import com.ibm.icu.util.ULocale.Category; * * * + * four for the full (wide) name, or 5 for the narrow name. With two ("LL"), the month number is zero-padded if + * necessary (e.g. "08"). * * * - * + * * * * @@ -266,7 +269,8 @@ import com.ibm.icu.util.ULocale.Category; * * * - * + * * * * @@ -279,7 +283,8 @@ import com.ibm.icu.util.ULocale.Category; * * * - * + * * * * @@ -307,8 +312,8 @@ import com.ibm.icu.util.ULocale.Category; * day * * - * - * + * * * @@ -332,7 +337,7 @@ import com.ibm.icu.util.ULocale.Category; * * * - * + * * * * @@ -351,12 +356,12 @@ import com.ibm.icu.util.ULocale.Category; * * * * * * - * + * * * * @@ -411,14 +416,16 @@ import com.ibm.icu.util.ULocale.Category; * * * - * + * * * * * * * - * + * * * * -- 2.40.0
1..3ADEra - Replaced with the Era string for the current date. One to three letters for the - * abbreviated form, four letters for the long form, five for the narrow form.
4甲子Cyclic year name. Calendars such as the Chinese lunar calendar (and related calendars) * and the Hindu calendars use 60-year cycles of year names. Use one through three letters for the abbreviated - * name, four for the full name, or five for the narrow name (currently the data only provides abbreviated names, + * name, four for the full (wide) name, or five for the narrow name (currently the data only provides abbreviated names, * which will be used for all requested name widths). If the calendar does not provide cyclic year name data, * or if the year value to be formatted is out of the range of years for which cyclic name data is provided, * then numeric formatting is used (behaves like 'y').1..202Quarter - Use one or two for the numerical quarter, three for the abbreviation, or four - * for the full name.
31..202Stand-Alone Quarter - Use one or two for the numerical quarter, three for the abbreviation, - * or four for the full name.
31..209Month - Use one or two for the numerical month, three for the abbreviation, four for - * the full name, or five for the narrow name.
3SeptSep
41..209Stand-Alone Month - Use one or two for the numerical month, three for the abbreviation, - * or four for the full name, or 5 for the narrow name.
3SeptSep
4w1..227Week of Year.Week of Year. Use "w" to show the minimum number of digits, or "ww" to always show two digits + * (zero-padding if necessary, e.g. "08").
Wd1..21Date - Day of the monthDate - Day of the month. Use "d" to show the minimum number of digits, or "dd" to always show + * two digits (zero-padding if necessary, e.g. "08").
DE1..3TuesDay of week - Use one through three letters for the short day, or four for the full name, + * TueDay of week - Use one through three letters for the short day, four for the full (wide) name, * five for the narrow name, or six for the short name.
3TuesTue
412Stand-Alone local day of week - Use one letter for the local numeric value (same - * as 'e'), three for the short day, four for the full name, five for the narrow name, or six for + * as 'e'), three for the short day, four for the full (wide) name, five for the narrow name, or six for * the short name.
3TuesTue
4m1..259Minute. Use one or two for zero padding.Minute. Use "m" to show the minimum number of digits, or "mm" to always show two digits + * (zero-padding if necessary, e.g. "08")..
seconds1..212Second. Use one or two for zero padding.Second. Use "s" to show the minimum number of digits, or "ss" to always show two digits + * (zero-padding if necessary, e.g. "08").
S