Home
last modified time | relevance | path

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

12345678910

/third_party/node/deps/icu-small/source/i18n/
Ddatefmt.cpp123 DateFormat::DateFormat() in DateFormat() function in DateFormat
132 DateFormat::DateFormat(const DateFormat& other) in DateFormat() function in DateFormat
143 DateFormat& DateFormat::operator=(const DateFormat& other) in operator =()
167 DateFormat::~DateFormat() in ~DateFormat()
176 DateFormat::operator==(const Format& other) const in operator ==()
185 DateFormat* fmt = (DateFormat*)&other; in operator ==()
194 DateFormat::format(const Formattable& obj, in format()
229 DateFormat::format(const Formattable& obj, in format()
265 DateFormat::format(Calendar& /* unused cal */, in format()
278 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format()
[all …]
/third_party/icu/icu4c/source/i18n/
Ddatefmt.cpp123 DateFormat::DateFormat() in DateFormat() function in DateFormat
132 DateFormat::DateFormat(const DateFormat& other) in DateFormat() function in DateFormat
143 DateFormat& DateFormat::operator=(const DateFormat& other) in operator =()
167 DateFormat::~DateFormat() in ~DateFormat()
176 DateFormat::operator==(const Format& other) const in operator ==()
183 DateFormat* fmt = (DateFormat*)&other; in operator ==()
195 DateFormat::format(const Formattable& obj, in format()
230 DateFormat::format(const Formattable& obj, in format()
266 DateFormat::format(Calendar& /* unused cal */, in format()
279 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format()
[all …]
/third_party/skia/third_party/externals/icu/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 …]
/third_party/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 …]
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 …]
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()
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 …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatTest.java50 import ohos.global.icu.text.DateFormat;
51 import ohos.global.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 …]
DDateFormatRoundTripTest.java29 import ohos.global.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 …]
DIntlTestDateFormatAPI.java33 import ohos.global.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()
DDateFormatRegressionTest.java36 import ohos.global.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 …]
/third_party/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()
56 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null); in checkGetInstance()
64 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance()
65 DateFormat df; in getJDKInstance()
68 df = DateFormat.getTimeInstance(tstyle, loc); in getJDKInstance()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormat.java144 public abstract class DateFormat extends UFormat { class
1378 public final static DateFormat getTimeInstance() in getTimeInstance()
1393 public final static DateFormat getTimeInstance(int style) in getTimeInstance()
1408 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1424 public final static DateFormat getTimeInstance(int style, in getTimeInstance()
1437 public final static DateFormat getDateInstance() in getDateInstance()
1455 public final static DateFormat getDateInstance(int style) in getDateInstance()
1473 public final static DateFormat getDateInstance(int style, in getDateInstance()
1492 public final static DateFormat getDateInstance(int style, in getDateInstance()
1505 public final static DateFormat getDateTimeInstance() in getDateTimeInstance()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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 …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
DDateTimeFormatterFactory.java11 import com.ibm.icu.text.DateFormat;
22 case "FULL": return DateFormat.FULL; in stringToStyle()
23 case "LONG": return DateFormat.LONG; in stringToStyle()
24 case "MEDIUM": return DateFormat.MEDIUM; in stringToStyle()
25 case "SHORT": return DateFormat.SHORT; in stringToStyle()
27 case "DEFAULT": return DateFormat.DEFAULT; in stringToStyle()
40 DateFormat df; in createFormatter()
46 df = DateFormat.getInstanceForSkeleton(skeleton, locale); in createFormatter()
57 int dateStyle = DateFormat.NONE; in createFormatter()
63 int timeStyle = DateFormat.NONE; in createFormatter()
[all …]
/third_party/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 …]
/third_party/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.cpp36 fFormat = DateFormat::createInstance(); in runIndexedTest()
70 DateFormat::EStyle timeStyle, dateStyle; in testLocale()
77 for(timeStyle = (DateFormat::EStyle)0; in testLocale()
78 timeStyle < (DateFormat::EStyle)4; in testLocale()
79 timeStyle = (DateFormat::EStyle) (timeStyle+1)) in testLocale()
82 fFormat = DateFormat::createTimeInstance(timeStyle, locale); in testLocale()
88 for(dateStyle = (DateFormat::EStyle)0; in testLocale()
89 dateStyle < (DateFormat::EStyle)4; in testLocale()
90 dateStyle = (DateFormat::EStyle) (dateStyle+1)) in testLocale()
93 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.cpp363 DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
364 DateFormat* fmtB = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
531 DateFormat* dateFormats[COUNT]; in TestFieldPosition()
532 …dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
533 …dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
600 DateFormat* df = dateFormats[j]; in TestFieldPosition()
718 ((DateFormat*)format)->format(date, f); in tryPat994()
756 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
761 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
831 DateFormat* fmt = DateFormat::createDateInstance(DateFormat::FULL, Locale("cs", "", "")); in TestCzechMonths459()
[all …]
/third_party/icu/tools/multi/proj/provider/glue/
Ddate_fe.cpp35 #define GLUE_VER(x) class GLUE_SYM_V( DateFormat, x ) : public DateFormat { \
36 public: static DateFormat *create(UDateFormatStyle timeStyle, \
44 private: UDateFormat *_this; GLUE_SYM_V( DateFormat, x ) ( UDateFormat* tn ); \
45 virtual ~ GLUE_SYM_V ( DateFormat, x) (); \
71 GLUE_SYM (DateFormat ) :: GLUE_SYM(DateFormat) ( UDateFormat* tn) : in GLUE_SYM() argument
79 GLUE_SYM ( DateFormat ) :: ~ GLUE_SYM(DateFormat) () { in GLUE_SYM() argument
86 DateFormat *
87 GLUE_SYM ( DateFormat ) :: create(UDateFormatStyle timeStyle, in GLUE_SYM() argument
106 DateFormat *c = new GLUE_SYM( DateFormat ) ( uc ); in GLUE_SYM()
113 UnicodeString& GLUE_SYM (DateFormat ) :: format( Calendar& cal, UnicodeString& appendTo, FieldPosi… in GLUE_SYM() argument
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Ddatefmt.h156 class U_I18N_API DateFormat : public Format {
224 virtual ~DateFormat();
232 virtual DateFormat* clone() const override = 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 …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Ddatefmt.h156 class U_I18N_API DateFormat : public Format {
224 virtual ~DateFormat();
232 virtual DateFormat* clone() const override = 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 …]
/third_party/skia/third_party/externals/icu/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 …]
/third_party/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 …]

12345678910