Home
last modified time | relevance | path

Searched refs:DateFormat (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/external/icu/icu4c/source/i18n/
Ddatefmt.cpp125 DateFormat::DateFormat() in DateFormat() function in DateFormat
134 DateFormat::DateFormat(const DateFormat& other) in DateFormat() function in DateFormat
145 DateFormat& DateFormat::operator=(const DateFormat& other) in operator =()
169 DateFormat::~DateFormat() in ~DateFormat()
178 DateFormat::operator==(const Format& other) const in operator ==()
185 DateFormat* fmt = (DateFormat*)&other; in operator ==()
197 DateFormat::format(const Formattable& obj, in format()
232 DateFormat::format(const Formattable& obj, in format()
268 DateFormat::format(Calendar& /* unused cal */, in format()
281 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDateFormatTest.java11 import java.text.DateFormat;
32 for (Locale loc : DateFormat.getAvailableLocales()) { in TestGetInstance()
37 checkGetInstance(DateFormat.FULL, DateFormat.LONG, loc); in TestGetInstance()
38 checkGetInstance(DateFormat.MEDIUM, -1, loc); in TestGetInstance()
39 checkGetInstance(1, DateFormat.SHORT, loc); in TestGetInstance()
45 DateFormat df = getJDKInstance(dstyle, tstyle, loc, method); in checkGetInstance()
58 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null); in checkGetInstance()
72 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance()
73 DateFormat df; in getJDKInstance()
76 df = DateFormat.getTimeInstance(tstyle, loc); in getJDKInstance()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java49 import com.ibm.icu.text.DateFormat;
50 import com.ibm.icu.text.DateFormat.BooleanAttribute;
79 {DateFormat.YEAR, "y","en","y"}, in TestPatterns()
81 {DateFormat.QUARTER, "QQQQ", "en", "QQQQ"}, in TestPatterns()
82 {DateFormat.ABBR_QUARTER, "QQQ", "en", "QQQ"}, in TestPatterns()
83 {DateFormat.YEAR_QUARTER, "yQQQQ", "en", "QQQQ y"}, in TestPatterns()
84 {DateFormat.YEAR_ABBR_QUARTER, "yQQQ", "en", "QQQ y"}, in TestPatterns()
86 {DateFormat.MONTH, "MMMM", "en", "LLLL"}, in TestPatterns()
87 {DateFormat.ABBR_MONTH, "MMM", "en", "LLL"}, in TestPatterns()
88 {DateFormat.NUM_MONTH, "M", "en", "L"}, in TestPatterns()
[all …]
DIntlTestDateFormatAPI.java32 import com.ibm.icu.text.DateFormat;
45 DateFormat a = DateFormat.getInstance(); in TestEquals()
53 DateFormat b = DateFormat.getInstance(); in TestEquals()
85 DateFormat def = DateFormat.getInstance(); in TestAPI()
86 DateFormat fr = DateFormat.getTimeInstance(DateFormat.FULL, Locale.FRENCH); in TestAPI()
87 DateFormat it = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ITALIAN); in TestAPI()
88DateFormat de = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.GERMAN); in TestAPI()
155 final Locale[] locales = DateFormat.getAvailableLocales(); in TestAPI()
DDateFormatRoundTripTest.java28 import com.ibm.icu.text.DateFormat;
55 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip()
83 case DateFormat.SHORT : in styleName()
85 case DateFormat.MEDIUM : in styleName()
87 case DateFormat.LONG : in styleName()
89 case DateFormat.FULL : in styleName()
120 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test()
123 DateFormat df = DateFormat.getDateInstance(style, loc); in _test()
128 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test()
131 DateFormat df = DateFormat.getTimeInstance(style, loc); in _test()
[all …]
DDateFormatRegressionTest.java35 import com.ibm.icu.text.DateFormat;
58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
95DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408()
259 DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.LONG); in Test4060212()
307 DateFormat shortdate, fulldate; in Test4065240()
322 shortdate = DateFormat.getDateInstance(DateFormat.SHORT); in Test4065240()
323 fulldate = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); in Test4065240()
373 DateFormat fmtA = DateFormat.getInstance(); in Test4071441()
374 DateFormat fmtB = DateFormat.getInstance(); in Test4071441()
412 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java50 import android.icu.text.DateFormat;
51 import android.icu.text.DateFormat.BooleanAttribute;
82 {DateFormat.YEAR, "y","en","y"}, in TestPatterns()
84 {DateFormat.QUARTER, "QQQQ", "en", "QQQQ"}, in TestPatterns()
85 {DateFormat.ABBR_QUARTER, "QQQ", "en", "QQQ"}, in TestPatterns()
86 {DateFormat.YEAR_QUARTER, "yQQQQ", "en", "QQQQ y"}, in TestPatterns()
87 {DateFormat.YEAR_ABBR_QUARTER, "yQQQ", "en", "QQQ y"}, in TestPatterns()
89 {DateFormat.MONTH, "MMMM", "en", "LLLL"}, in TestPatterns()
90 {DateFormat.ABBR_MONTH, "MMM", "en", "LLL"}, in TestPatterns()
91 {DateFormat.NUM_MONTH, "M", "en", "L"}, in TestPatterns()
[all …]
DIntlTestDateFormatAPI.java33 import android.icu.text.DateFormat;
48 DateFormat a = DateFormat.getInstance(); in TestEquals()
56 DateFormat b = DateFormat.getInstance(); in TestEquals()
88 DateFormat def = DateFormat.getInstance(); in TestAPI()
89 DateFormat fr = DateFormat.getTimeInstance(DateFormat.FULL, Locale.FRENCH); in TestAPI()
90 DateFormat it = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ITALIAN); in TestAPI()
91DateFormat de = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.GERMAN); in TestAPI()
158 final Locale[] locales = DateFormat.getAvailableLocales(); in TestAPI()
DDateFormatRoundTripTest.java29 import android.icu.text.DateFormat;
58 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip()
86 case DateFormat.SHORT : in styleName()
88 case DateFormat.MEDIUM : in styleName()
90 case DateFormat.LONG : in styleName()
92 case DateFormat.FULL : in styleName()
123 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test()
126 DateFormat df = DateFormat.getDateInstance(style, loc); in _test()
131 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) { in _test()
134 DateFormat df = DateFormat.getTimeInstance(style, loc); in _test()
[all …]
DDateFormatRegressionTest.java36 import android.icu.text.DateFormat;
61 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
98DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408()
262 DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.LONG); in Test4060212()
310 DateFormat shortdate, fulldate; in Test4065240()
325 shortdate = DateFormat.getDateInstance(DateFormat.SHORT); in Test4065240()
326 fulldate = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); in Test4065240()
376 DateFormat fmtA = DateFormat.getInstance(); in Test4071441()
377 DateFormat fmtB = DateFormat.getInstance(); in Test4071441()
415 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003()
[all …]
/external/libchrome/base/i18n/
Dtime_formatting.cc26 string16 TimeFormat(const icu::DateFormat* formatter, in TimeFormat()
35 string16 TimeFormatWithoutAmPm(const icu::DateFormat* formatter, in TimeFormatWithoutAmPm()
40 icu::FieldPosition ampm_field(icu::DateFormat::kAmPmField); in TimeFormatWithoutAmPm()
85 const char* DateFormatToString(DateFormat format) { in DateFormatToString()
101 std::unique_ptr<icu::DateFormat> formatter( in TimeFormatTimeOfDay()
102 icu::DateFormat::createTimeInstance(icu::DateFormat::kShort)); in TimeFormatTimeOfDay()
132 std::unique_ptr<icu::DateFormat> formatter( in TimeFormatShortDate()
133 icu::DateFormat::createDateInstance(icu::DateFormat::kMedium)); in TimeFormatShortDate()
138 std::unique_ptr<icu::DateFormat> formatter( in TimeFormatShortDateNumeric()
139 icu::DateFormat::createDateInstance(icu::DateFormat::kShort)); in TimeFormatShortDateNumeric()
[all …]
Dmessage_formatter_unittest.cc40 void AppendFormattedDateTime(const std::unique_ptr<icu::DateFormat>& df, in AppendFormattedDateTime()
123 using icu::DateFormat; in TEST_F()
124 std::unique_ptr<DateFormat> df( in TEST_F()
125 DateFormat::createDateInstance(DateFormat::FULL)); in TEST_F()
146 using icu::DateFormat; in TEST_F()
147 std::unique_ptr<DateFormat> tf( in TEST_F()
148 DateFormat::createTimeInstance(DateFormat::SHORT)); in TEST_F()
149 std::unique_ptr<DateFormat> df( in TEST_F()
150 DateFormat::createDateInstance(DateFormat::MEDIUM)); in TEST_F()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormat.java144 public abstract class DateFormat extends UFormat { class
1383 public final static DateFormat getTimeInstance() in getTimeInstance()
1398 public final static DateFormat getTimeInstance(int style) in getTimeInstance()
1413 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1429 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1442 public final static DateFormat getDateInstance() in getDateInstance()
1460 public final static DateFormat getDateInstance(int style) in getDateInstance()
1478 public final static DateFormat getDateInstance(int style, in getDateInstance()
1497 public final static DateFormat getDateInstance(int style, in getDateInstance()
1510 public final static DateFormat getDateTimeInstance() in getDateTimeInstance()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateFormat.java144 public abstract class DateFormat extends UFormat { class
1282 public final static DateFormat getTimeInstance() in getTimeInstance()
1296 public final static DateFormat getTimeInstance(int style) in getTimeInstance()
1310 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1325 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1337 public final static DateFormat getDateInstance() in getDateInstance()
1354 public final static DateFormat getDateInstance(int style) in getDateInstance()
1371 public final static DateFormat getDateInstance(int style, in getDateInstance()
1389 public final static DateFormat getDateInstance(int style, in getDateInstance()
1401 public final static DateFormat getDateTimeInstance() in getDateTimeInstance()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DSimpleDateFormatICU.java28 import com.ibm.icu.text.DateFormat;
319 if (icuAttribute == DateFormat.Field.AM_PM) { in mapAttribute()
320 jdkAttribute = java.text.DateFormat.Field.AM_PM; in mapAttribute()
321 } else if (icuAttribute == DateFormat.Field.DAY_OF_MONTH) { in mapAttribute()
322 jdkAttribute = java.text.DateFormat.Field.DAY_OF_MONTH; in mapAttribute()
323 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK) { in mapAttribute()
324 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK; in mapAttribute()
325 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK_IN_MONTH) { in mapAttribute()
326 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK_IN_MONTH; in mapAttribute()
327 } else if (icuAttribute == DateFormat.Field.DAY_OF_YEAR) { in mapAttribute()
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtfmtrtts.cpp142 const Locale *avail = DateFormat::getAvailableLocales(locCount); in TestDateFormatRoundTrip()
193 static const char *styleName(DateFormat::EStyle s) in styleName()
197 case DateFormat::SHORT: return "SHORT"; in styleName()
198 case DateFormat::MEDIUM: return "MEDIUM"; in styleName()
199 case DateFormat::LONG: return "LONG"; in styleName()
200 case DateFormat::FULL: return "FULL"; in styleName()
202 case DateFormat::DATE_OFFSET: return "DATE_OFFSET"; in styleName()
203 case DateFormat::NONE: return "NONE"; in styleName()
204 case DateFormat::DATE_TIME: return "DATE_TIME"; in styleName()
237 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test()
[all …]
Dtsdate.cpp38 fFormat = DateFormat::createInstance(); in runIndexedTest()
72 DateFormat::EStyle timeStyle, dateStyle; in testLocale()
79 for(timeStyle = (DateFormat::EStyle)0; in testLocale()
80 timeStyle < (DateFormat::EStyle)4; in testLocale()
81 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale()
84 fFormat = DateFormat::createTimeInstance(timeStyle, locale); in testLocale()
90 for(dateStyle = (DateFormat::EStyle)0; in testLocale()
91 dateStyle < (DateFormat::EStyle)4; in testLocale()
92 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale()
95 fFormat = DateFormat::createDateInstance(dateStyle, locale); in testLocale()
[all …]
Ddtfmapts.cpp83DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Loca… in TestCoverage()
98 DateFormat *a = DateFormat::createInstance(); in TestEquals()
101 DateFormat *b = DateFormat::createInstance(); in TestEquals()
139 DateFormat *def = DateFormat::createInstance(); in testAPI()
140 DateFormat *fr = DateFormat::createTimeInstance(DateFormat::FULL, Locale::getFrench()); in testAPI()
141 DateFormat *it = DateFormat::createDateInstance(DateFormat::MEDIUM, Locale::getItalian()); in testAPI()
142DateFormat *de = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::LONG, Locale::ge… in testAPI()
216 const Locale *locales = DateFormat::getAvailableLocales(count); in testAPI()
258 DateFormat *test = new SimpleDateFormat(status); in testAPI()
296 DateFormat *dateFmt = DateFormat::createInstance(); in TestNameHiding()
Ddtfmttst.cpp362 DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
363 DateFormat* fmtB = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
530 DateFormat* dateFormats[COUNT]; in TestFieldPosition()
531 …dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
532 …dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
599 DateFormat* df = dateFormats[j]; in TestFieldPosition()
717 ((DateFormat*)format)->format(date, f); in tryPat994()
755 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
760 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
830 DateFormat* fmt = DateFormat::createDateInstance(DateFormat::FULL, Locale("cs", "", "")); in TestCzechMonths459()
[all …]
/external/icu/libicu/cts_headers/unicode/
Ddatefmt.h156 class U_I18N_API DateFormat : public Format {
224 virtual ~DateFormat();
232 virtual DateFormat* clone() const = 0;
535 static DateFormat* U_EXPORT2 createInstance(void);
548 static DateFormat* U_EXPORT2 createTimeInstance(EStyle style = kDefault,
566 static DateFormat* U_EXPORT2 createDateInstance(EStyle style = kDefault,
587 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault,
619 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
636 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
655 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h156 class U_I18N_API DateFormat : public Format {
224 virtual ~DateFormat();
232 virtual DateFormat* clone() const = 0;
535 static DateFormat* U_EXPORT2 createInstance(void);
548 static DateFormat* U_EXPORT2 createTimeInstance(EStyle style = kDefault,
566 static DateFormat* U_EXPORT2 createDateInstance(EStyle style = kDefault,
587 static DateFormat* U_EXPORT2 createDateTimeInstance(EStyle dateStyle = kDefault,
619 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
636 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
655 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DDateFormatProviderICU.java11 import java.text.DateFormat;
24 public DateFormat getDateInstance(int style, Locale locale) { in getDateInstance()
29 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { in getDateTimeInstance()
34 public DateFormat getTimeInstance(int style, Locale locale) { in getTimeInstance()
43 private DateFormat getInstance(int dstyle, int tstyle, Locale locale) { in getInstance()
44 com.ibm.icu.text.DateFormat icuDfmt; in getInstance()
47 icuDfmt = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, actual); in getInstance()
49 icuDfmt = com.ibm.icu.text.DateFormat.getDateInstance(dstyle, actual); in getInstance()
51 icuDfmt = com.ibm.icu.text.DateFormat.getDateTimeInstance(dstyle, tstyle, actual); in getInstance()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRelativeDateFormat.java21 import android.icu.text.DateFormat;
34 public class RelativeDateFormat extends DateFormat {
69 if (fDateStyle != DateFormat.NONE) { in RelativeDateFormat()
70 int newStyle = fDateStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
71 DateFormat df = DateFormat.getDateInstance(newStyle, locale); in RelativeDateFormat()
78 if (fTimeStyle != DateFormat.NONE) { in RelativeDateFormat()
79 newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
80 df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat()
87 int newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
88 DateFormat df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRelativeDateFormat.java20 import com.ibm.icu.text.DateFormat;
32 public class RelativeDateFormat extends DateFormat {
66 if (fDateStyle != DateFormat.NONE) { in RelativeDateFormat()
67 int newStyle = fDateStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
68 DateFormat df = DateFormat.getDateInstance(newStyle, locale); in RelativeDateFormat()
75 if (fTimeStyle != DateFormat.NONE) { in RelativeDateFormat()
76 newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
77 df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat()
84 int newStyle = fTimeStyle & ~DateFormat.RELATIVE; in RelativeDateFormat()
85 DateFormat df = DateFormat.getTimeInstance(newStyle, locale); in RelativeDateFormat()
[all …]
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/
DExtendedCalendarTest.java22 import android.icu.text.DateFormat;
46 for (int timeStyle = DateFormat.NONE; timeStyle <= DateFormat.SHORT; timeStyle++) { in testGetDateTimeFormatString()
47 for (int dateStyle = DateFormat.NONE; dateStyle <= DateFormat.SHORT; dateStyle++) { in testGetDateTimeFormatString()
49 if (timeStyle == DateFormat.NONE && dateStyle == DateFormat.NONE) { in testGetDateTimeFormatString()
53 DateFormat dateFormat = calendar.getDateTimeFormat( in testGetDateTimeFormatString()

12345678910>>...12