/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
DerGeneralizedTimeEDTest.java | 54 Date myDate = getGmtDate(1101980374187L); 56 new DerOutputStream(gTime, myDate).encoded; 61 myDate = getGmtDate(1101980374180L); 63 new DerOutputStream(gTime, myDate).encoded; 68 myDate = getGmtDate(1101980374100L); 70 new DerOutputStream(gTime, myDate).encoded; 75 myDate = getGmtDate(1101980374000L); 77 new DerOutputStream(gTime, myDate).encoded; 85 myDate = sdf.parse("06.06.2004 00:00"); 87 new DerOutputStream(gTime, myDate).encoded [all...] |
DerUTCTimeEDTest.java | 57 Date myDate = getGmtDate(1101980374187L); 59 new DerOutputStream(uTime, myDate).encoded; 67 myDate = sdf.parse("06.06.2004 00:00"); 69 new DerOutputStream(uTime, myDate).encoded; 102 Date myDate = new Date(1101980374187L); 104 new DerOutputStream(uTime, myDate).encoded; 109 assertEquals(187, (myDate.getTime() - ((Date) uTime.decode(dis)).getTime())); 112 myDate = new SimpleDateFormat("MM.dd.yyyy HH:mm"). 115 new DerOutputStream(uTime, myDate).encoded; 119 assertEquals(myDate, uTime.decode(dis)) [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cdtrgtst.c | 205 UChar *myDate; 220 myDate=(UChar*)malloc(sizeof(UChar) * 11); 221 u_uastrcpy(myDate, "1970/01/12"); 223 aux917( def, myDate ); 233 u_uastrcpy(myDate, "19700112"); 234 aux917( def, myDate ); 236 free(myDate); 278 UDate myDate; 290 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status); 300 myString = myFormatit(fmt, myDate); [all...] |
/external/icu/icu4c/source/test/intltest/ |
dtfmrgts.cpp | 289 UnicodeString myDate; 293 myDate = "1997/01/01"; 294 aux917( fmt, myDate ); 301 myDate = "19970101"; 302 aux917( fmt, myDate ); 350 UDate myDate = formatter->parse( dateString, pos ); 360 myString = fmt->format( myDate, myString); 365 cal->setTime(myDate, status); 379 myDate = formatter->parse( dateString, pos ); 380 myString = fmt->format( myDate, myString ) [all...] |
dtfmttst.cpp | 762 UnicodeString myDate; 769 myDate = "1997/02/03"; 770 testIt917(fmt, myDate, date(97, 2 - 1, 3)); 773 myDate = "19970304"; 774 testIt917(fmt, myDate, date(97, 3 - 1, 4)); 870 UDate myDate = formatter->parse(dateString, pos); 871 logln((UnicodeString)"Using " + bigD + " -> " + myDate); 872 if (myDate != expBigD) errln((UnicodeString)"FAIL: bigD - Expected " + dateToString(expBigD)); 877 myDate = formatter->parse(dateString, pos); 878 logln((UnicodeString)"Using " + littleD + " -> " + dateToString(myDate)); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DateFormatRegressionTest.java | 218 String myDate; 220 myDate = "1997/01/01"; 221 aux917( fmt, myDate ); 223 myDate = "19970101"; 224 aux917( fmt, myDate ); 254 Date myDate = formatter.parse(dateString, pos); 256 String myString = fmt.format(myDate); 259 cal.setTime(myDate); 266 myDate = formatter.parse(dateString, pos); 267 myString = fmt.format(myDate); [all...] |
DateFormatTest.java | [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DateFormatRegressionTest.java | 214 String myDate; 216 myDate = "1997/01/01"; 217 aux917( fmt, myDate ); 219 myDate = "19970101"; 220 aux917( fmt, myDate ); 250 Date myDate = formatter.parse(dateString, pos); 252 String myString = fmt.format(myDate); 255 cal.setTime(myDate); 262 myDate = formatter.parse(dateString, pos); 263 myString = fmt.format(myDate); [all...] |
DateFormatTest.java | [all...] |