Home
last modified time | relevance | path

Searched refs:dateFormat (Results 1 – 25 of 27) sorted by relevance

12

/third_party/icu/icu4c/source/test/intltest/
Ddtfmtrtts.cpp45 DateFormatRoundTripTest::DateFormatRoundTripTest() : dateFormat(0) { in DateFormatRoundTripTest()
49 delete dateFormat; in ~DateFormatRoundTripTest()
520 if (dateFormat == 0) { in fullFormat()
521 dateFormat = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy G", ec); in fullFormat()
522 if (U_FAILURE(ec) || dateFormat == 0) { in fullFormat()
524 delete dateFormat; in fullFormat()
525 dateFormat = 0; in fullFormat()
530 dateFormat->format(d, fgStr); in fullFormat()
Ddtfmtrtts.h90 SimpleDateFormat *dateFormat; variable
Ddtfmttst.cpp4501 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance(dateStyle, locale)); in TestDotAndAtLeniency() local
4519 … formattedString = dateFormat->format(TEST_DATE, ds) + " " + timeFormat->format(TEST_DATE, ts); in TestDotAndAtLeniency()
4730 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance()); in TestParseLeniencyAPIs() local
4731 DateFormat *fmt = dateFormat.getAlias(); in TestParseLeniencyAPIs()
5693 SimpleDateFormat dateFormat(pattern, locale, status); in Test20741_ABFields() local
5698 dateFormat.format(*calendar, result, &fpositer, status); in Test20741_ABFields()
Ddtfmrgts.cpp998 UnicodeString dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4134203() local
999 SimpleDateFormat fmt (dateFormat, status); in Test4134203()
Dcalregts.cpp2684 SimpleDateFormat dateFormat("MM/dd/yyyy HH:mm z", locale, ec); in TestTimeZoneTransitionAdd() local
2706 dateFormat.setTimeZone(*t); in TestTimeZoneTransitionAdd()
2727 dateFormat.format(yesterday, buf1) + " +1d= " + in TestTimeZoneTransitionAdd()
2728 dateFormat.format(cal->getTime(ec), buf2)); in TestTimeZoneTransitionAdd()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRoundTripTest.java41 private SimpleDateFormat dateFormat; field in DateFormatRoundTripTest
51 dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestDateFormatRoundTrip()
255 logln((j > 0 ? " P> " : " ") + dateFormat.format(d[j], temp, pos) in _test()
DDateFormatRegressionTestJ.java175 String dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4266432() local
176 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
DDateIntervalFormatTest.java1766 DateFormat dateFormat = DateFormat.getPatternInstance(skeleton, locale); in TestTicket11583() local
1767 String dateFormatPattern = ((SimpleDateFormat)dateFormat).toPattern(); in TestTicket11583()
1780 String formattedStart = dateFormat.format(startDate); in TestTicket11583()
1781 String formattedEnd = dateFormat.format(endDate); in TestTicket11583()
2246 DateIntervalFormat dateFormat = DateIntervalFormat.getInstance(skeleton, locale); in testTicket20707() local
2249 …StringBuffer resultBuffer = dateFormat.format(calendar, calendar, new StringBuffer(""), new FieldP… in testTicket20707()
DDateFormatRegressionTest.java699 String dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4134203() local
700 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4134203()
950 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MMM-dd", loc); in Test_GEec() local
953 dateFormat.applyPattern( item.getPattern() ); in Test_GEec()
957 dateFormat.format(cal, buf, fp); in Test_GEec()
962 dateFormat.parse( item.getResult(), cal, pos); in Test_GEec()
DTestMessageFormat.java1260 DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM); in testNumericFormatWithMap() local
1263 fmtMap.put("1", dateFormat); in testNumericFormatWithMap()
1586 final SimpleDateFormat dateFormat = new SimpleDateFormat("'year:'yy 'month:'MM 'day:'dd"); in TestSetFormat() local
1587 dateFormat.setTimeZone(TimeZone.getTimeZone("Etc/GMT")); in TestSetFormat()
1588 ms.setFormatByArgumentName("date", dateFormat); in TestSetFormat()
1597 assertEquals("Date", dateFormat, ms.getFormatByArgumentName("date")); in TestSetFormat()
DDateFormatTest.java4736 DateFormat dateFormat = DateFormat.getDateInstance(dateStyle, locale); in TestDotAndAtLeniency() local
4745 … formattedString = dateFormat.format(TEST_DATE) + " " + timeFormat.format(TEST_DATE); in TestDotAndAtLeniency()
5576 SimpleDateFormat dateFormat = new SimpleDateFormat(pattern, locale); in test20741_ABFields() local
5581 dateFormat.format(calendar, new StringBuffer(""), pos_c); in test20741_ABFields()
5586 dateFormat.format(calendar, new StringBuffer(""), pos_B); in test20741_ABFields()
5590 dateFormat.format(calendar, new StringBuffer(""), pos_b); in test20741_ABFields()
5595 dateFormat.format(calendar, new StringBuffer(""), pos_a); in test20741_ABFields()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatRoundTripTest.java44 private SimpleDateFormat dateFormat; field in DateFormatRoundTripTest
54 dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestDateFormatRoundTrip()
258 logln((j > 0 ? " P> " : " ") + dateFormat.format(d[j], temp, pos) in _test()
DDateFormatRegressionTestJ.java178 String dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4266432() local
179 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
DDateIntervalFormatTest.java1611 DateFormat dateFormat = DateFormat.getPatternInstance(skeleton, locale); in TestTicket11583() local
1612 String dateFormatPattern = ((SimpleDateFormat)dateFormat).toPattern(); in TestTicket11583()
1625 String formattedStart = dateFormat.format(startDate); in TestTicket11583()
1626 String formattedEnd = dateFormat.format(endDate); in TestTicket11583()
2090 DateIntervalFormat dateFormat = DateIntervalFormat.getInstance(skeleton, locale); in testTicket20707() local
2093 …StringBuffer resultBuffer = dateFormat.format(calendar, calendar, new StringBuffer(""), new FieldP… in testTicket20707()
DDateFormatRegressionTest.java702 String dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4134203() local
703 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4134203()
953 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MMM-dd", loc); in Test_GEec() local
956 dateFormat.applyPattern( item.getPattern() ); in Test_GEec()
960 dateFormat.format(cal, buf, fp); in Test_GEec()
965 dateFormat.parse( item.getResult(), cal, pos); in Test_GEec()
DTestMessageFormat.java1263 DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM); in testNumericFormatWithMap() local
1266 fmtMap.put("1", dateFormat); in testNumericFormatWithMap()
1589 final SimpleDateFormat dateFormat = new SimpleDateFormat("'year:'yy 'month:'MM 'day:'dd"); in TestSetFormat() local
1590 dateFormat.setTimeZone(TimeZone.getTimeZone("Etc/GMT")); in TestSetFormat()
1591 ms.setFormatByArgumentName("date", dateFormat); in TestSetFormat()
1600 assertEquals("Date", dateFormat, ms.getFormatByArgumentName("date")); in TestSetFormat()
DDateFormatTest.java4652 DateFormat dateFormat = DateFormat.getDateInstance(dateStyle, locale); in TestDotAndAtLeniency() local
4661 … formattedString = dateFormat.format(TEST_DATE) + " " + timeFormat.format(TEST_DATE); in TestDotAndAtLeniency()
5492 SimpleDateFormat dateFormat = new SimpleDateFormat(pattern, locale); in test20741_ABFields() local
5497 dateFormat.format(calendar, new StringBuffer(""), pos_c); in test20741_ABFields()
5502 dateFormat.format(calendar, new StringBuffer(""), pos_B); in test20741_ABFields()
5506 dateFormat.format(calendar, new StringBuffer(""), pos_b); in test20741_ABFields()
5511 dateFormat.format(calendar, new StringBuffer(""), pos_a); in test20741_ABFields()
/third_party/boost/libs/hana/doc/js/
Dhighcharts-data.js24 "date"!==x[0][1]||e.dateFormat||(e.dateFormat=d(w[0]));this.dataFound()}return w};b.prototype.parse…
31 …s.alternativeFormat?(this.dateFormat=this.alternativeFormat,b=a.length,this.alternativeFormat=this…
32dateFormat||this.dateFormat,g;if(c)var e=c(a);else if("string"===typeof a){if(d)(c=this.dateFormat…
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DChineseTest.java726 ChineseDateFormat dateFormat; in Test6510() local
730dateFormat = new ohos.global.icu.text.ChineseDateFormat("MM/dd/yyyy(G) HH:mm:ss", Locale.CHINA); in Test6510()
750 errln("Lunar [MM/dd/y(G) HH:mm:ss] " + dateFormat.format(chineseCalendar)); in Test6510()
753 errln("Lunar [MM/dd/y(G) HH:mm:ss] " + dateFormat.format(chineseCalendar2)); in Test6510()
DIBMCalendarTest.java640 SimpleDateFormat dateFormat = in TestTimeZoneTransitionAdd() local
647 dateFormat.setTimeZone(t); in TestTimeZoneTransitionAdd()
662 dateFormat.format(yesterday) + " +1d= " + in TestTimeZoneTransitionAdd()
663 dateFormat.format(cal.getTime())); in TestTimeZoneTransitionAdd()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DChineseTest.java723 ChineseDateFormat dateFormat; in Test6510() local
727 dateFormat = new com.ibm.icu.text.ChineseDateFormat("MM/dd/yyyy(G) HH:mm:ss", Locale.CHINA); in Test6510()
747 errln("Lunar [MM/dd/y(G) HH:mm:ss] " + dateFormat.format(chineseCalendar)); in Test6510()
750 errln("Lunar [MM/dd/y(G) HH:mm:ss] " + dateFormat.format(chineseCalendar2)); in Test6510()
DIBMCalendarTest.java640 SimpleDateFormat dateFormat = in TestTimeZoneTransitionAdd() local
647 dateFormat.setTimeZone(t); in TestTimeZoneTransitionAdd()
662 dateFormat.format(yesterday) + " +1d= " + in TestTimeZoneTransitionAdd()
663 dateFormat.format(cal.getTime())); in TestTimeZoneTransitionAdd()
/third_party/icu/tools/unicodetools/com/ibm/rbm/
DRBxliffExporter.java34 private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); field in RBxliffExporter
64 dateFormat.setCalendar(gc); in convertToISO()
65 return dateFormat.format(gc.getTime()); in convertToISO()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/resources/
Dldml2icu_locale.txt148 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(full)"]/\2[@type="%A"]…
150 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(full)"]/\2[@type="%A"]…
152 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(long)"]/\2[@type="%A"]…
154 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(long)"]/\2[@type="%A"]…
156 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(medium)"]/\2[@type="%A…
158 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(medium)"]/\2[@type="%A…
160 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(short)"]/\2[@type="%A"…
162 //ldml/dates/calendars/calendar[@type="(%A)"]/(dateFormat)s/\2Length[@type="(short)"]/\2[@type="%A"…
/third_party/flutter/engine/flutter/shell/platform/darwin/ios/framework/Source/
DFlutterViewController.mm921 NSString* dateFormat = [NSDateFormatter dateFormatFromTemplate:@"j"
924 return [dateFormat rangeOfString:@"a"].location == NSNotFound;

12