Searched refs:date (Results 1 - 25 of 586) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-91.js28 var date = new Date();
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
[all...]
H A Dregress-399.js30 var date = new Date(1.009804e12);
31 var year = Number(String(date).match(/.*(200\d)/)[1]);
32 assertEquals(year, date.getFullYear());
H A Dregress-builtinbust-7.js12 var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0));
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);
H A Dregress-396.js30 function DateYear(date) {
31 var string = date.getYear() + '';
/external/lldb/test/functionalities/command_source/
H A Dmy.py1 def date(): function
3 today = datetime.date.today()
/external/chromium_org/v8/test/intl/overrides/
H A Ddate.js30 var date = new Date();
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), dat
[all...]
/external/chromium_org/v8/test/intl/date-format/
H A Dparse-mdyhms.js28 // Testing v8Parse method for date and time pattern.
39 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());
56 // Wrong date delimiter.
H A Dparse-MMMdy.js28 // Testing v8Parse method for date and time pattern.
39 var date = dtf.v8Parse('Feb 4, 1974'); variable
40 assertEquals(1974, date.getUTCFullYear());
41 assertEquals(1, date.getUTCMonth());
42 assertEquals(4, date.getUTCDate());
H A Dparse-mdy.js28 // Testing v8Parse method for date only.
30 function checkDate(date) {
31 assertEquals(1974, date.getUTCFullYear());
32 assertEquals(1, date.getUTCMonth());
33 assertEquals(4, date.getUTCDate());
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
H A DWeekPicker.java23 // initialize to current date
32 * Creates a date object from the |year| and |week|.
35 Calendar date = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
36 date.clear();
37 date.setFirstDayOfWeek(Calendar.MONDAY);
38 date.setMinimalDaysInFirstWeek(4);
39 date.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
40 date.set(Calendar.YEAR, year);
41 date.set(Calendar.WEEK_OF_YEAR, week);
42 return date;
62 getISOWeekYearForDate(Calendar date) argument
74 getWeekForDate(Calendar date) argument
[all...]
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DSIPDateHeader.java50 /** date field
52 protected SIPDate date; field in class:SIPDateHeader
64 return date.encode();
68 * Set the date member
72 date = d;
77 * Sets date of DateHeader. The date is repesented by the Calendar object.
79 * @param dat the Calendar object date of this header.
83 date = new SIPDate(dat.getTime().getTime());
87 * Gets the date o
[all...]
/external/chromium_org/chrome/browser/resources/net_internals/
H A Dtime_util.js116 * Adds an HTML representation of |date| to |parentNode|.
119 * @param {Date} date The date to be displayed.
120 * @return {DomNode} The new node containing the date/time.
122 function addNodeWithDate(parentNode, date) {
123 var span = addNodeWithText(parentNode, 'span', dateToString(date));
124 span.title = 't=' + date.getTime();
129 * Returns a string representation of |date|.
131 * @param {Date} date The date t
[all...]
/external/chromium_org/v8/test/webkit/
H A Ddate-set-to-nan.js25 "This tests if the Date setters handle invalid parameters correctly resulting in a NaN date and if a recovery from such a NaN date is only possible by using the date.setTime() and date.set[[UTC]Full]Year() functions."
75 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["se
[all...]
H A Ddate-parse-comments-test.js25 "test of JavaScript date parsing (comments in parentheses)"
28 function testDateParse(date, numericResult)
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/browser/resources/media/
H A Dutil.js41 var date = new Date(timeMillis);
42 return pad(date.getUTCHours()) + ':' + pad(date.getUTCMinutes()) + ':' +
43 pad(date.getUTCSeconds()) + ' ' + pad((date.getMilliseconds()) % 1000);
/external/chromium_org/chrome/browser/resources/chromeos/
H A Dset_time.js27 // Store values for reverting inputs when the user's date/time is invalid.
31 // safe minimum date.
35 // Set the max date to the min date plus 20 years.
39 // Make sure the ostensible date is within this range.
46 $('date').setAttribute('min', this.toHtmlValues_(this.minDate_).date);
47 $('date').setAttribute('max', this.toHtmlValues_(this.maxDate_).date);
63 $('date')
[all...]
/external/libcxx/test/utilities/date.time/
H A DAndroid.mk17 test_makefile := external/libcxx/test/utilities/date.time/Android.mk
19 test_name := utilities/date.time/tested_elsewhere
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/
H A DDateHelper.java28 * @return date the corresponding <code>Date</code>
36 * Converts a date as long to a mac date as long
38 * @param date date to convert
39 * @return date in mac format
41 static public long convert(Date date) { argument
42 return (date.getTime() / 1000L) + 2082844800L;
/external/valgrind/main/gdbserver_tests/
H A Dfilter_make_empty6 # is copied to a file, together with date and process.
9 date >> garbage.filtered.out
/external/chromium_org/third_party/lcov/bin/
H A 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[
[all...]
/external/chromium_org/v8/src/
H A Ddate.js15 // This file contains date support implemented in JavaScript.
66 // Compute number of days given a year, month, date.
67 // Note that month and date can lie outside the normal range.
72 function MakeDay(year, month, date) {
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) {
166 date
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
H A DMonthInputType.cpp71 DateComponents date; local
72 if (!parseToDateComponents(element().value(), &date))
74 double msec = date.millisecondsSinceEpoch();
81 DateComponents date; local
82 if (!date.setMillisecondsSinceEpochForMonth(value))
84 return serializeWithComponents(date);
95 DateComponents date; local
96 date.setMillisecondsSinceEpochForMonth(current);
97 double months = date.monthsSinceEpoch();
111 DateComponents date; local
[all...]
H A DBaseDateAndTimeInputType.cpp107 DateComponents date; local
108 if (!parseToDateComponents(source, &date))
110 double msec = date.millisecondsSinceEpoch();
129 DateComponents date;
130 if (!setMillisecondToDateComponents(value.toDouble(), &date))
132 return serializeWithComponents(date);
135 String BaseDateAndTimeInputType::serializeWithComponents(const DateComponents& date) const
139 return date.toString();
141 return date.toString(DateComponents::None);
143 return date
154 DateComponents date; local
[all...]
/external/nist-sip/java/javax/sip/header/
H A DDateHeader.java9 void setDate(Calendar date); argument
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DPagePopupController.cpp81 DateComponents date;
82 date.setMonthsSinceEpoch((year - 1970) * 12.0 + zeroBaseMonth);
83 return m_popupClient->locale().formatDateTime(date, Locale::FormatTypeMedium);
90 DateComponents date;
91 date.setMonthsSinceEpoch((year - 1970) * 12.0 + zeroBaseMonth);
92 return m_popupClient->locale().formatDateTime(date, Locale::FormatTypeShort);

Completed in 519 milliseconds

1234567891011>>