Searched full:date (Results 1 – 25 of 302) sorted by relevance
12345678910>>...13
19 failures += test(testDateChangeYear(), "Try to change date's year");20 failures += test(testDateChangeMonth(), "Try to change date's month");21 failures += test(testDateChangeDay(), "Try to set date's new day");42 let date: Date = new Date();43 let year = date.getFullYear();44 date.setFullYear(year - 1);46 if(date.getFullYear() == (year - 1)) return 0;52 let tmp = new Date(year, month + 1, 0);56 function testDateChangeMonthImpl(date: Date, change: int) {57 let month = date.getMonth();[all …]
36 let cd = new Date(intYears[i] as long);37 let cd1 = new Date(intYears[i]);41 let cd = new Date(intMonths[i] as long);42 let cd1 = new Date(intMonths[i]);46 let cd = new Date(intHours[i] as long);47 let cd1 = new Date(intHours[i]);51 let cd = new Date(intMinutes[i] as long);52 let cd1 = new Date(intMinutes[i]);59 let cd = new Date(doubleYears[i] as double);60 let cd1 = new Date(doubleYears[i]);[all …]
36 failures += test(testDateConstructor(), "Test constructor with Date object")68 let cd = new Date(longYears[i]);86 let cd = new Date(longYears[i], md[i]);87 let utc = Date.UTC(longYears[i], md[i]);106 let cd = new Date(longYears[i], md[i], day);107 let utc = Date.UTC(longYears[i], md[i], day);127 let cd = new Date(longYears[i], md[i], day, ht[i]);128 let utc = Date.UTC(longYears[i], md[i], day, ht[i]);149 let cd = new Date(longYears[i], md[i], day, ht[i], mh[i]);150 let utc = Date.UTC(longYears[i], md[i], day, ht[i], mh[i]);[all …]
22 // List of functions in Date, excluding the '@@' properties.24 // where BuiltinsDate::func refers to the native implementation of Date[name].27 … /* Date.now ( ) */ \29 … /* Date.parse ( string ) */ \31 … /* Date.UTC ( year [ , month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] ] ) */ \34 // List of functions in Date.prototype, excluding the constructor and '@@' properties.36 // where BuiltinsDate::func refers to the native implementation of Date.prototype[name].38 /* Date.prototype.getDate ( ) */ \40 /* Date.prototype.getDay ( ) */ \42 /* Date.prototype.getFullYear ( ) */ \[all …]
2 test262/data/other_tests/built-ins/Date/UTC/fp-evaluation-order.js5 test262/data/other_tests/built-ins/Date/prototype/setDate/this-value-invalid-date.js6 test262/data/other_tests/built-ins/Date/prototype/setHours/this-value-invalid-date.js7 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/this-value-invalid-date.js8 test262/data/other_tests/built-ins/Date/prototype/setMinutes/arg-coercion-order.js9 test262/data/other_tests/built-ins/Date/prototype/setMinutes/this-value-invalid-date.js10 test262/data/other_tests/built-ins/Date/prototype/setMonth/arg-coercion-order.js11 test262/data/other_tests/built-ins/Date/prototype/setMonth/this-value-invalid-date.js12 test262/data/other_tests/built-ins/Date/prototype/setSeconds/this-value-invalid-date.js16 test262/data/other_tests/built-ins/Date/prototype/setDate/arg-coercion-order.js[all …]
2 test262/data/other_tests/built-ins/Date/UTC/fp-evaluation-order.js5 test262/data/other_tests/built-ins/Date/prototype/setDate/arg-coercion-order.js6 test262/data/other_tests/built-ins/Date/prototype/setHours/arg-coercion-order.js7 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/arg-coercion-order.js8 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/this-value-invalid-date.js9 test262/data/other_tests/built-ins/Date/prototype/setMinutes/arg-coercion-order.js10 test262/data/other_tests/built-ins/Date/prototype/setMonth/arg-coercion-order.js11 test262/data/other_tests/built-ins/Date/prototype/setSeconds/arg-coercion-order.js12 test262/data/other_tests/built-ins/Date/prototype/setSeconds/this-value-invalid-date.js13 test262/data/other_tests/built-ins/Date/prototype/setUTCDate/arg-coercion-order.js[all …]
27 test262/data/other_tests/built-ins/Date/UTC/fp-evaluation-order.js30 test262/data/other_tests/built-ins/Date/prototype/setDate/arg-coercion-order.js31 test262/data/other_tests/built-ins/Date/prototype/setHours/arg-coercion-order.js32 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/arg-coercion-order.js33 test262/data/other_tests/built-ins/Date/prototype/setMinutes/arg-coercion-order.js34 test262/data/other_tests/built-ins/Date/prototype/setMonth/arg-coercion-order.js35 test262/data/other_tests/built-ins/Date/prototype/setMonth/this-value-invalid-date.js36 test262/data/other_tests/built-ins/Date/prototype/setSeconds/arg-coercion-order.js37 test262/data/other_tests/built-ins/Date/prototype/setSeconds/this-value-invalid-date.js38 test262/data/other_tests/built-ins/Date/prototype/setUTCDate/arg-coercion-order.js[all …]
29 test262/data/other_tests/built-ins/Date/UTC/fp-evaluation-order.js32 test262/data/other_tests/built-ins/Date/prototype/setDate/arg-coercion-order.js33 test262/data/other_tests/built-ins/Date/prototype/setHours/arg-coercion-order.js34 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/arg-coercion-order.js35 test262/data/other_tests/built-ins/Date/prototype/setMinutes/arg-coercion-order.js36 test262/data/other_tests/built-ins/Date/prototype/setMinutes/this-value-invalid-date.js37 test262/data/other_tests/built-ins/Date/prototype/setMonth/this-value-invalid-date.js38 test262/data/other_tests/built-ins/Date/prototype/setSeconds/arg-coercion-order.js39 test262/data/other_tests/built-ins/Date/prototype/setSeconds/this-value-invalid-date.js40 test262/data/other_tests/built-ins/Date/prototype/setUTCDate/arg-coercion-order.js[all …]
40 test262/data/other_tests/built-ins/Date/UTC/fp-evaluation-order.js43 test262/data/other_tests/built-ins/Date/prototype/setDate/arg-coercion-order.js44 test262/data/other_tests/built-ins/Date/prototype/setHours/arg-coercion-order.js45 test262/data/other_tests/built-ins/Date/prototype/setMilliseconds/arg-coercion-order.js46 test262/data/other_tests/built-ins/Date/prototype/setMinutes/arg-coercion-order.js47 test262/data/other_tests/built-ins/Date/prototype/setMonth/arg-coercion-order.js48 test262/data/other_tests/built-ins/Date/prototype/setMonth/this-value-invalid-date.js49 test262/data/other_tests/built-ins/Date/prototype/setSeconds/arg-coercion-order.js50 test262/data/other_tests/built-ins/Date/prototype/setUTCDate/arg-coercion-order.js51 test262/data/other_tests/built-ins/Date/prototype/setUTCHours/arg-coercion-order.js[all …]
1117 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-invalid.js1118 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/called-as-function.js1119 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-non-callable.js1120 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-default-first-valid.js1121 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-default-no-callables.js1122 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js1123 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-number-first-invalid.js1124 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-number-first-non-callable.js1125 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-number-first-valid.js1126 test262/data/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-number-no-callables.js[all …]
18 const time1 = Date.now()22 const time2 = Date.now()31 const time1 = Date.now()35 const time2 = Date.now()44 const time1 = Date.now()48 const time2 = Date.now()55 const time1 = Date.now()59 const time2 = Date.now()66 const time1 = Date.now()70 const time2 = Date.now()[all …]
27 return Date.now(x);31 return Date.now();49 //aot: [trace] aot inline builtin: Date.now, caller function name:func_main_0@builtinDateNow50 print(Date.now()); //: __INT__58 //aot: [trace] aot inline builtin: Date.now, caller function name:func_main_0@builtinDateNow59 print(Date.now()); //: __INT_MORE_PREV__65 //aot: [trace] aot inline builtin: Date.now, caller function name:func_main_0@builtinDateNow66 print(Date.now(0)); //: __INT__67 //aot: [trace] aot inline builtin: Date.now, caller function name:func_main_0@builtinDateNow68 print(Date.now(1, 2)); //: __INT__[all …]
14 category: Date16 - expr: new Date(pars).getTimezoneOffset()24 - expr: new Date(pars).valueOf()32 - expr: new Date(pars).getFullYear()35 - expr: new Date(pars).getMonth()38 - expr: new Date(pars).getDate()41 - expr: new Date(pars).getDay()44 - expr: new Date(pars).getHours()47 - expr: new Date(pars).getMinutes()50 - expr: new Date(pars).getSeconds()[all …]
18 // TODO To offer protection against timing attacks and fingerprinting, the precision of `Date.getTi…19 // `Date.now()` might get rounded depending on browser (target) settings.165 * @returns Date number (within month).300 * @param date304 function ecmaMakeDay(year: long, month: long, date: long): long {312 …DayFromYear(ym) as long + getFirstDayInMonth(ecmaInLeapYear(ym), mn) as long + (date as long) - 1);402 * Date JS API-compatible class404 export final class Date {405 /** Stored value of Date, milliseconds */410 * The `parseDateFromString()` static method parses a string representation of a date,[all …]
48 let time = new Date('July 20, 99 20:17:40 GMT+00:00')49 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…52 time = new Date(990000000000)53 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…55 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…59 time = new Date(1990, 2, 15, 16, 17, 18);60 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…62 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…64 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…66 //aot: [trace] aot inline builtin: Date.prototype.getTime, caller function name:func_main_0@builtin…[all …]
17 let start = Date.now();22 let end = Date.now();29 let start = Date.now();34 let end = Date.now();41 let start = Date.now();46 let end = Date.now();54 const time1 = Date.now()58 const time2 = Date.now()64 let start = Date.now();69 let end = Date.now();[all …]
17 const dae: Date = new Date();20 public readonly date: Date;23 this.date = new Date();
17 public readonly /* @@ label */date: Date = new Date();24 this.date = new Date();30 /* @@@ label Error TypeError: Cannot assign to a readonly variable date */
18 * @tc.desc:test date22 var d1 = new Date(2022, 0, 1);23 var d2 = new Date(2022, 1, 2);24 var d3 = new Date(2022, 2, 3);25 var d4 = new Date(2022, 3, 4);26 var d5 = new Date(1677628800000);27 var d6 = new Date(1680278400000);29 var d9 = new Date(1970, 1, 1);30 var d10 = new Date(2022, 2, 26, 23, 59); // dst become effective in GMT+02:00
18 * @tc.desc:test date22 var d1 = new Date("2023-02-19T11:13:48.132Z");23 var d2 = new Date("Thu Nov 19 2020 20:18:18 GMT");24 var d3 = new Date("Thu, 21 Nov 2023 13:23:26 GMT");25 var d4 = new Date("2021-12-25 03:25:45.476Z");26 var d5 = new Date("January 13,2016 22:19:35 GMT");51 let d6 = new Date("Wed, 26-Jun-19 GMT")53 let d7 = new Date("Wed, 26-Jun-2019 GMT")55 let date8=new Date('Jun,19 12:03:45 GMT')
30 void DateUtils::TransferTimeToDate(int64_t timeMs, std::array<int64_t, DATE_LENGTH> *date) in TransferTimeToDate() argument32 …(*date)[HOUR] = Mod(timeMs, MS_PER_DAY); // ms from hour, minutes,… in TransferTimeToDate()33 …(*date)[DAYS] = (timeMs - (*date)[HOUR]) / MS_PER_DAY; // days from year, month,… in TransferTimeToDate()34 (*date)[MS] = (*date)[HOUR] % MS_PER_SECOND; // ms in TransferTimeToDate()35 …(*date)[HOUR] = ((*date)[HOUR] - (*date)[MS]) / MS_PER_SECOND; // s from hour, minutes, … in TransferTimeToDate()36 (*date)[SEC] = (*date)[HOUR] % SEC_PER_MINUTE; // second in TransferTimeToDate()37 … (*date)[HOUR] = ((*date)[HOUR] - (*date)[SEC]) / SEC_PER_MINUTE; // min from hour, minutes in TransferTimeToDate()38 (*date)[MIN] = (*date)[HOUR] % SEC_PER_MINUTE; // min in TransferTimeToDate()39 (*date)[HOUR] = ((*date)[HOUR] - (*date)[MIN]) / SEC_PER_MINUTE; // hour in TransferTimeToDate()40 (*date)[WEEKDAY] = Mod(((*date)[DAYS] + LEAP_NUMBER[0]), DAY_PER_WEEK); // weekday in TransferTimeToDate()[all …]
18 * @tc.desc:test date22 var str1 = Date.parse('08/04/2011')23 var str2 = Date.parse('2010-08-04')25 var timer1 = new Date(str1)26 var timer2 = new Date(str2)
19 currentTime: Date;21 setTime(d: Date);25 currentTime: Date;27 setTime(d: Date) {37 let now = Date.prototype;
26 print(str1.charCodeAt(new Date()));58 a.foo = Date;63 date: Date, property72 obj.date(0);73 obj.date(0, 1);74 obj.date(0, 1, 2);75 obj.date(0, 1, 2, 3);
71 let start = Date.now();73 …// To get time Date.now and libuv uses clock_gettime under the hood, but with different parameters…74 …ime interval there may be an error. For example time interval measured by Date.now may be 5.9ms ro…77 let spentTime = Date.now() - start + 1;103 let start = Date.now();106 …// To get time Date.now and libuv uses clock_gettime under the hood, but with different parameters…107 …ime interval there may be an error. For example time interval measured by Date.now may be 5.9ms ro…110 let spentTime = Date.now() - start + 1;