/external/v8/test/intl/date-format/ |
D | parse-mdy.js | 36 var dtf = new Intl.DateTimeFormat(['en'], {timeZone: 'America/Los_Angeles'}); variable 39 assertEquals('M/d/y', dtf.resolved.pattern); 41 checkDate(dtf.v8Parse('2/4/74')); 42 checkDate(dtf.v8Parse('02/04/74')); 43 checkDate(dtf.v8Parse('2/04/74')); 44 checkDate(dtf.v8Parse('02/4/74')); 45 checkDate(dtf.v8Parse('2/4/1974')); 46 checkDate(dtf.v8Parse('02/4/1974')); 47 checkDate(dtf.v8Parse('2/04/1974')); 48 checkDate(dtf.v8Parse('02/04/1974')); [all …]
|
D | parse-mdyhms.js | 30 var dtf = new Intl.DateTimeFormat(['en'], variable 37 assertEquals('M/d/y h:mm:ss a', dtf.resolved.pattern); 39 var date = dtf.v8Parse('2/4/74 12:30:42 pm'); 48 assertEquals(undefined, dtf.v8Parse('2/4/74 12:30:12')); 51 assertEquals(undefined, dtf.v8Parse('2/4/74')); 54 assertEquals(undefined, dtf.v8Parse('Feb 4th 1974')); 57 assertEquals(undefined, dtf.v8Parse('2-4-74 12:30:12 am'));
|
D | parse-MMMdy.js | 31 var dtf = new Intl.DateTimeFormat(['en'], variable 37 assertEquals('MMM d, y', dtf.resolved.pattern); 39 var date = dtf.v8Parse('Feb 4, 1974'); 45 assertEquals(undefined, dtf.v8Parse('Feb 4 1974')); 48 assertEquals(undefined, dtf.v8Parse('Feb 4th, 1974')); 51 assertEquals(undefined, dtf.v8Parse('2/4/1974'));
|
D | parse-invalid-input.js | 30 var dtf = new Intl.DateTimeFormat(['en']); variable 32 assertEquals(undefined, dtf.v8Parse('')); 33 assertEquals(undefined, dtf.v8Parse('A')); 34 assertEquals(undefined, dtf.v8Parse(5)); 35 assertEquals(undefined, dtf.v8Parse(new Date()));
|
D | format-test.js | 30 var dtf = new Intl.DateTimeFormat('en-US', {timeZone: 'UTC'}); variable 32 var someDate = dtf.format(144313200000); 39 dtf.format(value); 50 assertEquals('11/11/1500', dtf.format(new Date(1500,10,11,12,0,0)));
|
D | format-is-bound.js | 29 var dtf = new Intl.DateTimeFormat(); variable 36 dateArray.forEach(dtf.format); 39 dtf.format();
|
D | wellformed-unsupported-locale.js | 30 var dtf = Intl.DateTimeFormat(['xx']); variable 32 assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());
|
D | resolved-options-is-method.js | 31 var dtf = new Intl.DateTimeFormat(); variable 33 var result = dtf.resolvedOptions();
|
D | default-locale.js | 31 var dtf = new Intl.DateTimeFormat([]); variable 33 var options = dtf.resolvedOptions();
|
/external/v8/test/intl/overrides/ |
D | date.js | 62 var dtf = new Intl.DateTimeFormat(locale, options); variable 63 assertEquals(dtf.format(date), date.toLocaleString(locale, options)); 64 assertEquals(dtf.format(date), date.toLocaleDateString(locale, options)); 65 assertEquals(dtf.format(date), date.toLocaleTimeString(locale, options));
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GlobalizationPreferences.java | 582 SimpleDateFormat dtf = new SimpleDateFormat("vvvv",locale); in getDisplayName() local 583 dtf.setTimeZone(TimeZone.getFrozenTimeZone(id)); in getDisplayName() 584 result = dtf.format(new Date()); in getDisplayName()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
D | GlobalizationPreferences.java | 607 SimpleDateFormat dtf = new SimpleDateFormat("vvvv",locale); in getDisplayName() local 608 dtf.setTimeZone(TimeZone.getFrozenTimeZone(id)); in getDisplayName() 609 result = dtf.format(new Date()); in getDisplayName()
|