Home
last modified time | relevance | path

Searched refs:DateFormat (Results 1 - 25 of 216) sorted by relevance

123456789

/third_party/icu/icu4c/source/i18n/
H A Ddatefmt.cpp44 // class DateFormat
123 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
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Ddatefmt.cpp44 // class DateFormat
123 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
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Ddatefmt.cpp44 // class DateFormat
125 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
[all...]
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A 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()
51 errln("FAIL: " + method[0] + " returned JDK DateFormat for locale " + loc); in checkGetInstance()
54 logln("INFO: " + method[0] + " returned ICU DateFormat for locale " + loc); in checkGetInstance()
56 DateFormat dfIc in checkGetInstance()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DDateFormatTest.java49 import com.ibm.icu.text.DateFormat;
50 import com.ibm.icu.text.DateFormat.BooleanAttribute;
74 * the DateFormat instances that contain the correct localized patterns.
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 in TestPatterns()
[all...]
H A DDateFormatRoundTripTest.java28 import com.ibm.icu.text.DateFormat;
35 * Performs round-trip tests for DateFormat
55 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip()
57 logln("DateFormat available locales: " + locCount); 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 in _test()
[all...]
H A DIntlTestDateFormatAPI.java32 import com.ibm.icu.text.DateFormat;
45 DateFormat a = DateFormat.getInstance(); in TestEquals()
53 DateFormat b = DateFormat.getInstance(); in TestEquals()
56 errln("FAIL: DateFormat objects created at different times are unequal."); in TestEquals()
65 // errln("FAIL: DateFormat objects with different two digit start dates are equal."); in TestEquals()
73 // This test checks various generic API methods in DateFormat to achieve 100% API coverage.
77 logln("DateFormat API test---"); logln(""); in TestAPI()
83 logln("Testing DateFormat constructor in TestAPI()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
H A 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 in createFormatter()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DDateFormatTest.java50 import ohos.global.icu.text.DateFormat;
51 import ohos.global.icu.text.DateFormat.BooleanAttribute;
77 * the DateFormat instances that contain the correct localized patterns.
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 in TestPatterns()
[all...]
H A DDateFormatRoundTripTest.java29 import ohos.global.icu.text.DateFormat;
37 * Performs round-trip tests for DateFormat
58 final Locale[] avail = DateFormat.getAvailableLocales(); in TestDateFormatRoundTrip()
60 logln("DateFormat available locales: " + locCount); 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 in _test()
[all...]
H A DIntlTestDateFormatAPI.java33 import ohos.global.icu.text.DateFormat;
48 DateFormat a = DateFormat.getInstance(); in TestEquals()
56 DateFormat b = DateFormat.getInstance(); in TestEquals()
59 errln("FAIL: DateFormat objects created at different times are unequal."); in TestEquals()
68 // errln("FAIL: DateFormat objects with different two digit start dates are equal."); in TestEquals()
76 // This test checks various generic API methods in DateFormat to achieve 100% API coverage.
80 logln("DateFormat API test---"); logln(""); in TestAPI()
86 logln("Testing DateFormat constructor in TestAPI()
[all...]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DSimpleDateFormatICU.java28 import com.ibm.icu.text.DateFormat;
219 // Methods overriding java.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 in mapAttribute()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Ddtfmtrtts.cpp142 const Locale *avail = DateFormat::getAvailableLocales(locCount); in TestDateFormatRoundTrip()
143 logln("DateFormat available locales: %d", 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()
201 // case DateFormat::DEFAULT: return "DEFAULT"; in styleName()
202 case DateFormat::DATE_OFFSET: return "DATE_OFFSET"; in styleName()
203 case DateFormat in styleName()
[all...]
H A Ddtfmapts.cpp30 case 0: name = "DateFormat API test"; in runIndexedTest()
32 logln("DateFormat API test---"); logln(""); in runIndexedTest()
83 DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Locale(LOCALES[i])); in TestCoverage()
85 dataerrln("Error creating DateFormat instances."); in TestCoverage()
98 DateFormat *a = DateFormat::createInstance(); in TestEquals()
101 DateFormat * in TestEquals()
[all...]
H A Dtsdate.cpp26 * DateFormat.
31 if (exec) logln("TestSuite DateFormat"); in runIndexedTest()
36 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 in testLocale()
[all...]
H A Ddtfmttst.cpp210 // TODO: use DateFormat::getInstanceForSkeleton(), ticket #9029 in TestPatterns()
212 // DateFormat date1 = DateFormat.getPatternInstance(actualPattern, in TestPatterns()
214 // DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), in TestPatterns()
225 if(errorCode.errIfFailureAndReset("DateFormat::getInstanceForSkeleton() failed")) { in TestPatterns()
363 DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat in TestEquals()
[all...]
/third_party/icu/tools/multi/proj/provider/glue/
H A 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()
79 GLUE_SYM ( DateFormat ) :: ~ GLUE_SYM(DateFormat) () { in GLUE_SYM()
86 DateFormat *
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DDateFormat.java35 * {@icuenhanced java.text.DateFormat}.{@icu _usage_}
38 * DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a
44 * DateFormat helps you to format and parse dates for any locale. Your code can be completely independent of the locale
62 * myString = DateFormat.getDateInstance().format(myDate);
63 * myString = DateFormat.getPatternInstance(DateFormat.YEAR_ABBR_MONTH).format(myDate);
70 * DateFormat df = DateFormat.getDateInstance();
79 * DateFormat df = DateFormat
144 public abstract class DateFormat extends UFormat { global() class
1923 protected DateFormat() {} DateFormat() method in DateFormat
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DDateFormat.java36 * <strong>[icu enhancement]</strong> ICU's replacement for {@link java.text.DateFormat}.&nbsp;Methods, fields, and other functionality specific to ICU are labeled '<strong>[icu]</strong>'.
39 * DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a
45 * DateFormat helps you to format and parse dates for any locale. Your code can be completely independent of the locale
63 * myString = DateFormat.getDateInstance().format(myDate);
64 * myString = DateFormat.getPatternInstance(DateFormat.YEAR_ABBR_MONTH).format(myDate);
71 * DateFormat df = DateFormat.getDateInstance();
80 * DateFormat df = DateFormat
144 public abstract class DateFormat extends UFormat { global() class
1796 protected DateFormat() {} DateFormat() method in DateFormat
[all...]
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Ddatefmt.h61 * DateFormat is an abstract class for a family of classes that convert dates and
66 * subclass of DateFormat: SimpleDateFormat, which can handle pretty much all normal
69 * DateFormat helps you to format and parse dates for any locale. Your code can
77 * DateFormat* dfmt = DateFormat::createDateInstance();
88 * DateFormat* df = DateFormat::createDateInstance();
101 * DateFormat* dfmt = DateFormat::createDateInstance();
102 * FieldPosition pos(DateFormat
156 class U_I18N_API DateFormat : public Format { global() class
[all...]
/third_party/icu/icu4c/source/i18n/unicode/
H A Ddatefmt.h61 * DateFormat is an abstract class for a family of classes that convert dates and
66 * subclass of DateFormat: SimpleDateFormat, which can handle pretty much all normal
69 * DateFormat helps you to format and parse dates for any locale. Your code can
77 * DateFormat* dfmt = DateFormat::createDateInstance();
88 * DateFormat* df = DateFormat::createDateInstance();
101 * DateFormat* dfmt = DateFormat::createDateInstance();
102 * FieldPosition pos(DateFormat
156 class U_I18N_API DateFormat : public Format { global() class
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
H A Ddatefmt.h61 * DateFormat is an abstract class for a family of classes that convert dates and
66 * subclass of DateFormat: SimpleDateFormat, which can handle pretty much all normal
69 * DateFormat helps you to format and parse dates for any locale. Your code can
77 * DateFormat* dfmt = DateFormat::createDateInstance();
88 * DateFormat* df = DateFormat::createDateInstance();
101 * DateFormat* dfmt = DateFormat::createDateInstance();
102 * FieldPosition pos(DateFormat
156 class U_I18N_API DateFormat : public Format { global() class
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A 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 in RelativeDateFormat()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DRelativeDateFormat.java21 import ohos.global.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 in RelativeDateFormat()
[all...]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
H A 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()

Completed in 18 milliseconds

123456789