/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-91.js | 28 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 D | regress-399.js | 30 var date = new Date(1.009804e12); 31 var year = Number(String(date).match(/.*(200\d)/)[1]); 32 assertEquals(year, date.getFullYear());
|
H A D | regress-builtinbust-7.js | 12 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 D | regress-396.js | 30 function DateYear(date) { 31 var string = date.getYear() + '';
|
/external/lldb/test/functionalities/command_source/ |
H A D | my.py | 1 def date(): function 3 today = datetime.date.today()
|
/external/chromium_org/v8/test/intl/overrides/ |
H A D | date.js | 30 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 D | parse-mdyhms.js | 28 // 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 D | parse-MMMdy.js | 28 // 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 D | parse-mdy.js | 28 // 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/ui/android/java/src/org/chromium/ui/picker/ |
H A D | WeekPicker.java | 23 // 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 D | SIPDateHeader.java | 50 /** 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 D | time_util.js | 116 * 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 D | date-set-to-nan.js | 25 "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 D | date-parse-comments-test.js | 25 "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 D | util.js | 41 var date = new Date(timeMillis); 42 return pad(date.getUTCHours()) + ':' + pad(date.getUTCMinutes()) + ':' + 43 pad(date.getUTCSeconds()) + ' ' + pad((date.getMilliseconds()) % 1000);
|
/external/chromium_org/third_party/WebKit/Source/core/html/forms/ |
H A D | MonthInputType.cpp | 71 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); 89 DateComponents date; local 90 date.setMillisecondsSinceEpochForMonth(convertToLocalTime(currentTimeMS())); 91 double months = date.monthsSinceEpoch(); 105 DateComponents date; local [all...] |
H A D | BaseDateAndTimeInputType.cpp | 103 DateComponents date; local 104 if (!parseToDateComponents(source, &date)) 106 double msec = date.millisecondsSinceEpoch(); 125 DateComponents date; 126 if (!setMillisecondToDateComponents(value.toDouble(), &date)) 128 return serializeWithComponents(date); 131 String BaseDateAndTimeInputType::serializeWithComponents(const DateComponents& date) const 135 return date.toString(); 137 return date.toString(DateComponents::None); 139 return date 150 DateComponents date; local [all...] |
H A D | TimeInputType.cpp | 76 DateComponents date; local 77 date.setMillisecondsSinceMidnight(convertToLocalTime(currentTimeMS())); 78 double milliseconds = date.millisecondsSinceEpoch(); 97 bool TimeInputType::setMillisecondToDateComponents(double value, DateComponents* date) const 99 ASSERT(date); 100 return date->setMillisecondsSinceMidnight(value); 107 DateComponents date; local 108 if (!parseToDateComponents(proposedValue, &date)) 111 Locale::FormatType formatType = shouldHaveSecondField(date) ? Locale::FormatTypeMedium : Locale::FormatTypeShort; 113 String localized = element().locale().formatDateTime(date, formatTyp [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/ |
H A D | set_time.js | 27 // 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 D | Android.mk | 17 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 D | DateHelper.java | 28 * @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 D | filter_make_empty | 6 # is copied to a file, together with date and process. 9 date >> garbage.filtered.out
|
/external/chromium_org/third_party/lcov/bin/ |
H A D | updateversion.pl | 64 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 D | date.js | 15 // 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/nist-sip/java/javax/sip/header/ |
H A D | DateHeader.java | 9 void setDate(Calendar date); argument
|