/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | time.cpp | 43 int day = nowtm.tm_mday; in IsDst() local 55 if (day > stDSTStart.wDay || (day == stDSTStart.wDay && hour >= tzi.DaylightBias)) { in IsDst() 59 if (day < stDSTEnd.wDay || (day == stDSTEnd.wDay && hour < tzi.DaylightBias)) { in IsDst()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | date_parse.cpp | 76 DateUnit day = proxy->GetDate(); in IsIsoDateTime() local 77 if (!day.IsTwoDecimalDigit()) { in IsIsoDateTime() 80 dayValue->SetData(day.GetValue()); in IsIsoDateTime() 386 int day = 1; in SetDayValue() local 395 day = data_[DAYS]; in SetDayValue() 398 // input:month-day-year in SetDayValue() 401 day = data_[1]; // 1:index of day in SetDayValue() 406 day = data_[2]; // 2:index of day in SetDayValue() [all...] |
H A D | js_date.cpp | 41 (*date)[DAYS] = (timeMs - (*date)[HOUR]) / MS_PER_DAY; // days from year, month, day in TransferTimeToDate() 174 double JSDate::MakeDate(double day, double time) 176 if (std::isfinite(day) && std::isfinite(time)) { 177 return time + day * MS_PER_DAY; 312 double day = MakeDay(year, month, date); 314 double timeValue = TimeClip(MakeDate(day, time)); 376 double day = MakeDay(year, month, date); 378 double timeValue = TimeClip(MakeDate(day, time)); 461 double day = MakeDay(year, month - 1, date); 463 double timeValue = TimeClip(MakeDate(day, tim 947 SetDateValues(int64_t year, int64_t month, int64_t day) SetDateValues() argument [all...] |
H A D | js_relative_time_format.cpp | 180 // 5. If unit is "days" or "day", return "day". in SingularUnitToIcuUnit() 189 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitToIcuUnit() local 213 } else if (EcmaStringAccessor::StringsAreEqual(*day, *unit) || in SingularUnitToIcuUnit() 271 // 10. If unit is not one of "second", "minute", "hour", "day", "week", "month", "quarter", or "year", throw a in GetIcuFormatted() 304 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitString() local 330 // 5. If unit is "days" or "day", return "day". in SingularUnitString() 331 if (EcmaStringAccessor::StringsAreEqual(*day, *unit) || EcmaStringAccessor::StringsAreEqual(*days, *unit)) { in SingularUnitString() 332 return day; in SingularUnitString() [all...] |
H A D | js_date.h | 102 static double MakeDate(double day, double time); 167 static double SetDateValues(int64_t year, int64_t month, int64_t day);
|
H A D | object_fast_operator-inl.h | 870 double day = JSDate::MakeDay(year, month - 1, date); in FastParseDate() local 871 double timeValue = JSDate::TimeClip(JSDate::MakeDate(day, 0)); in FastParseDate()
|
/arkcompiler/ets_runtime/test/moduletest/regress/ |
H A D | regress.js | 232 const datesList = [{ year: '2021', month: '10', day: '22', hour: '10', minute: '12', second: '32' }, 233 { year: '2021', month: '8', day: '3', hour: '9', minute: '9', second: '6' }]; 234 const { year, month, day, hour, minute, second } = datesList[0]; 235 const s0 = `${year}-${month}-${day} ${hour}:${minute}:${second}Z`; 237 const s1 = `${'0'.repeat(i) + year}-${month}-${day} ${hour}:${minute}:${second}Z`;
|
/arkcompiler/ets_frontend/test/scripts/ |
H A D | entry.py | 66 schedule.every().day.at("02:10").do(run)
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_stubs.h | 81 inline GateRef IsNumberYearMonthDay(GateRef year, GateRef month, GateRef day)
in IsNumberYearMonthDay() argument 84 return BitAnd(condition, TaggedIsNumber(day));
in IsNumberYearMonthDay()
|
H A D | builtins_stubs.cpp | 493 BRANCH(Int64Equal(numArgs, IntPtr(3)), &threeArgs, &slowPath); // 3: year month day
in DECLARE_BUILTINS() 499 GateRef day = GetArgFromArgv(IntPtr(2));
in DECLARE_BUILTINS() local 500 BRANCH(IsNumberYearMonthDay(year, month, day), &numberYearMonthDay, &slowPath);
in DECLARE_BUILTINS() 505 GateRef d = GetDoubleOfTNumber(day);
in DECLARE_BUILTINS()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_date_time_format_second_test.cpp | 92 { "day", "2-digit" } in FormatDateTimeCommon() 167 auto day = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray1), 4).GetValue(); in HWTEST_F_L0() local 176 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, day).c_str(), "day"); in HWTEST_F_L0() 177 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, day).c_str(), "25"); in HWTEST_F_L0() 190 auto day = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray), 4).GetValue(); in CheckOther() local 192 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, day).c_str(), "day"); in CheckOther() 193 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, day).c_str(), "25"); in CheckOther() 248 { "day", " in HWTEST_F_L0() [all...] |
H A D | js_date_test.cpp | 60 double const day = ecmascript::JSDate::MakeDay(-1, 11, 31); in HWTEST_F_L0() local 62 double ms = ecmascript::JSDate::TimeClip(ecmascript::JSDate::MakeDate(day, time)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_date_time_format_first_test.cpp | 58 const double day = JSDate::MakeDay(year, month, date); in BuiltinsDateCreate() local 60 double days = JSDate::MakeDate(day, time); in BuiltinsDateCreate()
|
/arkcompiler/ets_frontend/test/scripts/utils/commit_message/ |
H A D | get_commit_message.py | 160 start_time = datetime(yesterday.year, yesterday.month, yesterday.day, 0, 0, 0)
|
/arkcompiler/ets_runtime/test/jsperftest/ |
H A D | run_js_test.py | 579 get v 8 based data. v 8 based data obtained on 1,11,21 day for dayevery month.that is to say, in 1,11,21,
587 day = int(str_list[2])
589 if day > 21:
591 elif day > 11:
|
/arkcompiler/ets_runtime/test/aotjsperftest/ |
H A D | run_js_test.py | 565 headers_row = ['caseName', 'scene', 'status', 'ark_aot excute(ms)', 'last day excute(ms)', 'detorioration?',
596 get v 8 based data. v 8 based data obtained on 1,11,21 day for dayevery month.that is to say, in 1,11,21,
604 day = int(str_list[2])
606 if day > 21:
608 elif day > 11:
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs.h | 150 static double SetDateValues(double year, double month, double day);
|
H A D | runtime_stubs.cpp | 3479 double RuntimeStubs::SetDateValues(double year, double month, double day) in SetDateValues() argument 3481 if (std::isnan(year) || !std::isfinite(year) || std::isnan(month) || !std::isfinite(month) || std::isnan(day) || in SetDateValues() 3482 !std::isfinite(day)) { in SetDateValues() 3486 return JSDate::SetDateValues(static_cast<int64_t>(year), static_cast<int64_t>(month), static_cast<int64_t>(day)); in SetDateValues()
|