Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 1142) sorted by relevance

12345678910>>...46

/external/chromium_org/v8/test/webkit/
Ddate-set-to-nan-expected.txt24 …orrectly resulting in a NaN date and if a recovery from such a NaN date is only possible by using …
29 PASS date.setTime(arg0)
30 PASS date.setTime()
31 PASS recover from NaN date using date.setTime()
32 PASS date.setTime passed all tests
33 PASS date.setMilliseconds(arg0)
34 PASS date.setMilliseconds()
35 PASS no recovering from NaN date using date.setMilliseconds(arg0)
36 PASS date.setMilliseconds passed all tests
37 PASS date.setUTCMilliseconds(arg0)
[all …]
Ddate-set-to-nan.js75 var date = new Date();
76 var setValue = date["get" + functionNameRoot]();
77 date.setMilliseconds(Number.NaN);
84 var setResult = (1 == steps) ? date["set" + functionNameRoot](setValue)
85 : ((2 == steps) ? date["set" + functionNameRoot](setValue, 0)
86 : ((3 == steps) ? date["set" + functionNameRoot](setValue, 0, 0)
87 : date["set" + functionNameRoot](setValue, 0, 0, 0)));
93 var getResult = date["get" + functionNameRoot]();
105 var date = new Date();
106 var setValue = date["get" + functionNameRoot]();
[all …]
Ddate-parse-comments-test.js28 function testDateParse(date, numericResult) argument
31 shouldBeNaN('Date.parse("' + date + '")');
32 shouldBeNaN('Date.parse("' + date.toUpperCase() + '")');
33 shouldBeNaN('Date.parse("' + date.toLowerCase() + '")');
35 shouldBeTrue('Date.parse("' + date + '") == ' + numericResult);
36 shouldBeTrue('Date.parse("' + date.toUpperCase() + '") == ' + numericResult);
37 shouldBeTrue('Date.parse("' + date.toLowerCase() + '") == ' + numericResult);
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DWeekPicker.java35 Calendar date = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in createDateFromWeek() local
36 date.clear(); in createDateFromWeek()
37 date.setFirstDayOfWeek(Calendar.MONDAY); in createDateFromWeek()
38 date.setMinimalDaysInFirstWeek(4); in createDateFromWeek()
39 date.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in createDateFromWeek()
40 date.set(Calendar.YEAR, year); in createDateFromWeek()
41 date.set(Calendar.WEEK_OF_YEAR, week); in createDateFromWeek()
42 return date; in createDateFromWeek()
49 Calendar date = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in createDateFromValue() local
50 date.clear(); in createDateFromValue()
[all …]
/external/chromium_org/v8/test/intl/overrides/
Ddate.js30 var date = new Date(); variable
40 assertEquals(dtfAll.format(date), date.toLocaleString());
41 assertEquals(dtfDate.format(date), date.toLocaleDateString());
42 assertEquals(dtfTime.format(date), date.toLocaleTimeString());
53 assertEquals(dtfAll.format(date), date.toLocaleString(locale));
54 assertEquals(dtfDate.format(date), date.toLocaleDateString(locale));
55 assertEquals(dtfTime.format(date), date.toLocaleTimeString(locale));
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/chromium_org/v8/src/
Ddate.js72 function MakeDay(year, month, date) { argument
73 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return NAN;
78 date = TO_INTEGER_MAP_MINUS_ZERO(date);
86 return %DateMakeDay(year | 0, month | 0) + date - 1;
121 function DateConstructor(year, month, date, hours, minutes, seconds, ms) { argument
166 date = argc > 2 ? ToNumber(date) : 1;
174 var day = MakeDay(year, month, date);
192 function DateString(date) { argument
193 return WeekDays[LOCAL_WEEKDAY(date)] + ' '
194 + Months[LOCAL_MONTH(date)] + ' '
[all …]
/external/chromium_org/v8/test/mjsunit/regress/
Dregress-91.js28 var date = new Date(); variable
29 var year = date.getYear();
30 date.setMilliseconds(Number.NaN);
31 date.setYear(1900 + year);
32 assertEquals(year, date.getYear());
33 assertEquals(0, date.getMonth());
34 assertEquals(1, date.getDate());
35 assertEquals(0, date.getHours());
36 assertEquals(0, date.getMinutes());
37 assertEquals(0, date.getSeconds());
[all …]
Dregress-builtinbust-7.js12 var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0)); variable
21 assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", options); });
25 date.toLocaleDateString("de-DE", options_incomplete);
29 assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", undefined); });
30 assertDoesNotThrow(function() { date.toLocaleDateString("de-DE"); });
31 assertThrows(function() { date.toLocaleDateString("de-DE", null); }, TypeError);
/external/clang/test/Analysis/
DCFDateGC.m39 CFDateRef date = CFDateCreate(0, t);
40 CFRetain(date);
41 [NSMakeCollectable(date) release];
42 CFDateGetAbsoluteTime(date); // no-warning
43 CFRelease(date);
44 …t = CFDateGetAbsoluteTime(date); // expected-warning{{Reference-counted object is used after it …
52 CFDateRef date = CFDateCreate(0, t);
53 CFRetain(date);
54 [(id) CFMakeCollectable(date) release];
55 CFDateGetAbsoluteTime(date); // no-warning
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/
Dset_time.js46 $('date').setAttribute('min', this.toHtmlValues_(this.minDate_).date);
47 $('date').setAttribute('max', this.toHtmlValues_(this.maxDate_).date);
91 this.prevValues_.date = $('date').value = htmlValues.date;
108 var date = $('date').valueAsDate;
109 date.setMilliseconds(date.getMilliseconds() + $('time').valueAsNumber);
112 date.setMinutes(date.getMinutes() + date.getTimezoneOffset());
114 var seconds = Math.floor(date / 1000);
175 toHtmlValues_: function(date) { argument
178 var localDate = new Date(date);
179 localDate.setMinutes(date.getMinutes() - date.getTimezoneOffset());
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DMonthInputType.cpp71 DateComponents date; in valueAsDate() local
72 if (!parseToDateComponents(element().value(), &date)) in valueAsDate()
74 double msec = date.millisecondsSinceEpoch(); in valueAsDate()
81 DateComponents date; in serializeWithMilliseconds() local
82 if (!date.setMillisecondsSinceEpochForMonth(value)) in serializeWithMilliseconds()
84 return serializeWithComponents(date); in serializeWithMilliseconds()
95 DateComponents date; in defaultValueForStepUp() local
96 date.setMillisecondsSinceEpochForMonth(current); in defaultValueForStepUp()
97 double months = date.monthsSinceEpoch(); in defaultValueForStepUp()
111 DateComponents date; in parseToNumber() local
[all …]
DBaseDateAndTimeInputType.cpp107 DateComponents date; in parseToNumber() local
108 if (!parseToDateComponents(source, &date)) in parseToNumber()
110 double msec = date.millisecondsSinceEpoch(); in parseToNumber()
129 DateComponents date; in serialize() local
130 if (!setMillisecondToDateComponents(value.toDouble(), &date)) in serialize()
132 return serializeWithComponents(date); in serialize()
135 String BaseDateAndTimeInputType::serializeWithComponents(const DateComponents& date) const in serializeWithComponents()
139 return date.toString(); in serializeWithComponents()
141 return date.toString(DateComponents::None); in serializeWithComponents()
143 return date.toString(DateComponents::Second); in serializeWithComponents()
[all …]
DTimeInputType.cpp82 DateComponents date; in defaultValueForStepUp() local
83 date.setMillisecondsSinceMidnight(current); in defaultValueForStepUp()
84 double milliseconds = date.millisecondsSinceEpoch(); in defaultValueForStepUp()
103 bool TimeInputType::setMillisecondToDateComponents(double value, DateComponents* date) const in setMillisecondToDateComponents()
105 ASSERT(date); in setMillisecondToDateComponents()
106 return date->setMillisecondsSinceMidnight(value); in setMillisecondToDateComponents()
118 DateComponents date; in localizeValue() local
119 if (!parseToDateComponents(proposedValue, &date)) in localizeValue()
122 …Locale::FormatType formatType = shouldHaveSecondField(date) ? Locale::FormatTypeMedium : Locale::F… in localizeValue()
124 String localized = element().locale().formatDateTime(date, formatType); in localizeValue()
[all …]
/external/chromium_org/chrome/browser/resources/net_internals/
Dtime_util.js122 function addNodeWithDate(parentNode, date) { argument
123 var span = addNodeWithText(parentNode, 'span', dateToString(date));
124 span.title = 't=' + date.getTime();
134 function dateToString(date) { argument
135 var dateStr = date.getFullYear() + '-' +
136 zeroPad_(date.getMonth() + 1, 2) + '-' +
137 zeroPad_(date.getDate(), 2);
139 var timeStr = zeroPad_(date.getHours(), 2) + ':' +
140 zeroPad_(date.getMinutes(), 2) + ':' +
141 zeroPad_(date.getSeconds(), 2) + '.' +
[all …]
/external/chromium_org/third_party/lcov/bin/
Dupdateversion.pl64 my @date = get_file_info($filename);
65 my $date_string = $date[0];
80 chmod(oct($date[2]), "$filename.new");
82 system("touch", "$filename", "-t", $date[1]);
88 my @date = get_file_info($filename);
101 chmod(oct($date[2]), "$filename.new");
103 system("touch", "$filename", "-t", $date[1]);
109 my @date = get_file_info($filename);
117 s/(Last\s+changes:\s+)\d\d\d\d-\d\d-\d\d/$1$date[0]/g;
122 chmod(oct($date[2]), "$filename.new");
[all …]
/external/nist-sip/java/gov/nist/javax/sip/header/
DSIPDateHeader.java52 protected SIPDate date; field in SIPDateHeader
64 return date.encode(); in encodeBody()
72 date = d; in setDate()
83 date = new SIPDate(dat.getTime().getTime()); in setDate()
93 if (date == null) in getDate()
95 return date.getJavaCal(); in getDate()
100 if (this.date != null) in clone()
101 retval.date = (SIPDate) this.date.clone(); in clone()
/external/valgrind/main/auxprogs/
Dnightly-build-summary100 my ($i, $n, $line, $date);
134 $date = $1;
135 print "DATE = $date\n";
173 return ($date, %hash);
218 foreach my $date (sort keys %dates) {
221 my %nightly = %{ $dates{$date} };
254 $dates{$date} = { %nightly };
296 my ($date, %regtest_data) = get_raw_data(@lines);
300 if ($date ne $old_date) {
305 $old_date = $date;
[all …]
/external/chromium_org/base/time/
Dtime_mac.cc165 CFGregorianDate date; in FromExploded() local
166 date.second = exploded.second + in FromExploded()
168 date.minute = exploded.minute; in FromExploded()
169 date.hour = exploded.hour; in FromExploded()
170 date.day = exploded.day_of_month; in FromExploded()
171 date.month = exploded.month; in FromExploded()
172 date.year = exploded.year; in FromExploded()
176 CFAbsoluteTime seconds = CFGregorianDateGetAbsoluteTime(date, time_zone) + in FromExploded()
194 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(seconds, time_zone); in Explode() local
198 exploded->year = date.year; in Explode()
[all …]
/external/chromium_org/v8/test/intl/date-format/
Dparse-mdyhms.js39 var date = dtf.v8Parse('2/4/74 12:30:42 pm'); variable
40 assertEquals(1974, date.getUTCFullYear());
41 assertEquals(1, date.getUTCMonth());
42 assertEquals(4, date.getUTCDate());
43 assertEquals(12, date.getUTCHours());
44 assertEquals(30, date.getUTCMinutes());
45 assertEquals(42, date.getUTCSeconds());
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java165 Date date = new Date(); in testCheckValidity1() local
171 date.compareTo(na_date) > 0); in testCheckValidity1()
173 date.compareTo(nb_date) < 0); in testCheckValidity1()
176 date.compareTo(na_date) > 0); in testCheckValidity1()
179 date.compareTo(nb_date) < 0); in testCheckValidity1()
192 Date[] date = new Date[4]; in testCheckValidity2() local
194 for (int i = 0; i < date.length; i++) { in testCheckValidity2()
196 date[i] = calendar.getTime(); in testCheckValidity2()
200 for (int i = 0; i < date.length; i++) { in testCheckValidity2()
202 tbt_cert.checkValidity(date[i]); in testCheckValidity2()
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Dtkt2192.test32 date real,
45 select strftime('%Y-%m', date) as date, (-1 * sum(value)) as value
47 group by strftime('%Y-%m', date);
51 select strftime('%Y-%m', date) as date, (-1 * sum(value)) as value
54 group by strftime('%Y-%m', date);
57 select strftime('%Y-%m', date) as date, (-1 * sum(value)) as value
62 group by strftime('%Y-%m', date);
65 select strftime('%Y-%m', date) as date, (-1 * sum(value)) as value
67 group by strftime('%Y-%m', date);
72 select 'Energy' as expense, date, value from energy
[all …]
/external/icu/icu4c/source/samples/date/
Dreadme.txt2 icudate: a sample program which displays the current date
5 Formatting a date
10 date.c Main source file
13 date.sln Windows MSVC workspace. Double-click this to get started.
14 date.vcproj Windows MSVC project file
18 2. In MSVC, open the workspace file icu\samples\date\date.sln
28 cd c:\icu\source\samples\date\debug
29 4. Run it (Warning: Be careful, 'date' is also a system command on many systems)
30 .\date
45 cd <icu directory>/source/samples/date
[all …]
/external/chromium_org/third_party/libxslt/libexslt/
Ddate.c111 exsltDateValDate date; member
683 exsltDateFreeDate (exsltDateValPtr date) { in exsltDateFreeDate() argument
684 if (date == NULL) in exsltDateFreeDate()
687 xmlFree(date); in exsltDateFreeDate()
767 ret->value.date.year = localTm.tm_year + 1900; in exsltDateCurrent()
769 ret->value.date.mon = localTm.tm_mon + 1; in exsltDateCurrent()
770 ret->value.date.day = localTm.tm_mday; in exsltDateCurrent()
771 ret->value.date.hour = localTm.tm_hour; in exsltDateCurrent()
772 ret->value.date.min = localTm.tm_min; in exsltDateCurrent()
775 ret->value.date.sec = (double) localTm.tm_sec; in exsltDateCurrent()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Dzstrfmt.h238 …UnicodeString** createZoneStringsArray(UDate date, int32_t &rowCount, int32_t &colCount, UErrorCod…
270 inline UnicodeString& getLongStandard(const UnicodeString &tzid, UDate date,
272 inline UnicodeString& getLongDaylight(const UnicodeString &tzid, UDate date,
274 inline UnicodeString& getLongGenericNonLocation(const UnicodeString &tzid, UDate date,
276 inline UnicodeString& getLongGenericPartialLocation(const UnicodeString &tzid, UDate date,
278 …inline UnicodeString& getShortStandard(const UnicodeString &tzid, UDate date, UBool commonlyUsedOn…
280 …inline UnicodeString& getShortDaylight(const UnicodeString &tzid, UDate date, UBool commonlyUsedOn…
282 …inline UnicodeString& getShortGenericNonLocation(const UnicodeString &tzid, UDate date, UBool comm…
284 …inline UnicodeString& getShortGenericPartialLocation(const UnicodeString &tzid, UDate date, UBool …
310 …icodeString& getString(const UnicodeString &tzid, TimeZoneTranslationTypeIndex typeIdx, UDate date,
[all …]
Ddatefmt.cpp118 UDate date = 0; in format() local
122 date = obj.getDate(); in format()
125 date = (UDate)obj.getDouble(); in format()
128 date = (UDate)obj.getLong(); in format()
139 return format(date, appendTo, fieldPosition); in format()
153 UDate date = 0; in format() local
157 date = obj.getDate(); in format()
160 date = (UDate)obj.getDouble(); in format()
163 date = (UDate)obj.getLong(); in format()
174 return format(date, appendTo, posIter, status); in format()
[all …]

12345678910>>...46