summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-08 15:06:14 -0800
committerElliott Hughes <enh@google.com>2013-03-08 15:06:14 -0800
commit8326b9a429b63b680aa9af116c670ce674744d80 (patch)
tree7caa33842712e0ba213f69d8fe545029a6bcc681 /api
parent3f7a49904cef7ea14808590b63b115a4381537a1 (diff)
downloadframeworks_base-8326b9a429b63b680aa9af116c670ce674744d80.zip
frameworks_base-8326b9a429b63b680aa9af116c670ce674744d80.tar.gz
frameworks_base-8326b9a429b63b680aa9af116c670ce674744d80.tar.bz2
Improve DateFormat.format.
Add support for the 'c' format character, required in many non-English locales. Reimplement 'c' and 'E', and 'L' and 'M', so they correctly interpret 5-count pattern characters. Replace the old incorrect class documentation with a pointer to the well-maintained libcore equivalent and the Unicode UTS to which these two implementations are supposed to conform. Deprecate the useless constants for pattern characters. No one sane is going to write MONTH + MONTH + MONTH + MONTH instead of "MMMM". Correct the documentation for getLongDateFormat and getMediumDateFormat. Also fix DateUtils.getStandaloneMonthString for LENGTH_SHORTEST. Tests are in https://android-review.googlesource.com/53291. Change-Id: I4dda8b18070f05ccdc11c1f0a9381a9d233db4e8
Diffstat (limited to 'api')
-rw-r--r--api/current.txt26
1 files changed, 13 insertions, 13 deletions
diff --git a/api/current.txt b/api/current.txt
index 269af6b..05ae8ae 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -22276,19 +22276,19 @@ package android.text.format {
method public static java.text.DateFormat getMediumDateFormat(android.content.Context);
method public static java.text.DateFormat getTimeFormat(android.content.Context);
method public static boolean is24HourFormat(android.content.Context);
- field public static final char AM_PM = 97; // 0x0061 'a'
- field public static final char CAPITAL_AM_PM = 65; // 0x0041 'A'
- field public static final char DATE = 100; // 0x0064 'd'
- field public static final char DAY = 69; // 0x0045 'E'
- field public static final char HOUR = 104; // 0x0068 'h'
- field public static final char HOUR_OF_DAY = 107; // 0x006b 'k'
- field public static final char MINUTE = 109; // 0x006d 'm'
- field public static final char MONTH = 77; // 0x004d 'M'
- field public static final char QUOTE = 39; // 0x0027 '\''
- field public static final char SECONDS = 115; // 0x0073 's'
- field public static final char STANDALONE_MONTH = 76; // 0x004c 'L'
- field public static final char TIME_ZONE = 122; // 0x007a 'z'
- field public static final char YEAR = 121; // 0x0079 'y'
+ field public static final deprecated char AM_PM = 97; // 0x0061 'a'
+ field public static final deprecated char CAPITAL_AM_PM = 65; // 0x0041 'A'
+ field public static final deprecated char DATE = 100; // 0x0064 'd'
+ field public static final deprecated char DAY = 69; // 0x0045 'E'
+ field public static final deprecated char HOUR = 104; // 0x0068 'h'
+ field public static final deprecated char HOUR_OF_DAY = 107; // 0x006b 'k'
+ field public static final deprecated char MINUTE = 109; // 0x006d 'm'
+ field public static final deprecated char MONTH = 77; // 0x004d 'M'
+ field public static final deprecated char QUOTE = 39; // 0x0027 '\''
+ field public static final deprecated char SECONDS = 115; // 0x0073 's'
+ field public static final deprecated char STANDALONE_MONTH = 76; // 0x004c 'L'
+ field public static final deprecated char TIME_ZONE = 122; // 0x007a 'z'
+ field public static final deprecated char YEAR = 121; // 0x0079 'y'
}
public class DateUtils {