Home
last modified time | relevance | path

Searched refs:day (Results 1 – 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dtime.cpp43 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_frontend/test/scripts/
Dtimer.py32 schedule.every().day.at("01:00").do(job, cmd=os.path.join(
35 schedule.every().day.at("01:00").do(
38 schedule.every().day.at("01:00").do(
41 schedule.every().day.at("01:00").do(
/arkcompiler/ets_runtime/ecmascript/
Ddate_parse.cpp74 DateUnit day = proxy->GetDate(); in IsIsoDateTime() local
75 if (!day.IsTwoDecimalDigit()) { in IsIsoDateTime()
78 dayValue->SetData(day.GetValue()); in IsIsoDateTime()
383 int day = 1; in SetDayValue() local
392 day = data_[DAYS]; in SetDayValue()
398 day = data_[1]; // 1:index of day in SetDayValue()
403 day = data_[2]; // 2:index of day in SetDayValue()
414 day = data_[0]; in SetDayValue()
418 day = data_[1]; in SetDayValue()
421 day = data_[0]; in SetDayValue()
[all …]
Djs_date.cpp169 double JSDate::MakeDate(double day, double time) in MakeDate() argument
171 if (std::isfinite(day) && std::isfinite(time)) { in MakeDate()
172 return time + day * MS_PER_DAY; in MakeDate()
310 double day = MakeDay(year, month, date); in LocalParseStringToMs() local
312 double timeValue = TimeClip(MakeDate(day, time)); in LocalParseStringToMs()
378 double day = MakeDay(year, month, date); in UtcParseStringToMs() local
380 double timeValue = TimeClip(MakeDate(day, time)); in UtcParseStringToMs()
463 double day = MakeDay(year, month - 1, date); in IsoParseStringToMs() local
465 double timeValue = TimeClip(MakeDate(day, time)); in IsoParseStringToMs()
482 double day = MakeDay(time[YEAR], time[MONTH], time[DAYS]); in GetTimeFromString() local
[all …]
Djs_date.h96 static double MakeDate(double day, double time);
161 static double SetDateValues(int64_t year, int64_t month, int64_t day);
Djs_relative_time_format.cpp189 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitToIcuUnit() local
213 } else if (EcmaStringAccessor::StringsAreEqual(*day, *unit) || in SingularUnitToIcuUnit()
304 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitString() local
331 …if (EcmaStringAccessor::StringsAreEqual(*day, *unit) || EcmaStringAccessor::StringsAreEqual(*days,… in SingularUnitString()
332 return day; in SingularUnitString()
Dobject_fast_operator-inl.h481 double day = JSDate::MakeDay(year, month - 1, date); in FastParseDate() local
482 double timeValue = JSDate::TimeClip(JSDate::MakeDate(day, 0)); in FastParseDate()
Dglobal_env_constants.h301 …V(JSTaggedValue, DayString, DAY_STRING_INDEX, day) …
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DuseRegexpGroups.ts57 let day1 = result.groups.day;
59 AssertType(result.groups.day, "string");
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.h145 inline GateRef IsNumberYearMonthDay(GateRef year, GateRef month, GateRef day) in IsNumberYearMonthDay() argument
148 return BoolAnd(condition, TaggedIsNumber(day)); in IsNumberYearMonthDay()
Dbuiltins_stubs.cpp1047 GateRef day = GetArgNCheck(IntPtr(2)); in DECLARE_BUILTINS() local
1048 Branch(IsNumberYearMonthDay(year, month, day), &numberYearMonthDay, &slowPath); in DECLARE_BUILTINS()
1053 GateRef d = GetDoubleOfTNumber(day); in DECLARE_BUILTINS()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_date_test.cpp84 double const day = ecmascript::JSDate::MakeDay(-1, 11, 31); in HWTEST_F_L0() local
86 double ms = ecmascript::JSDate::TimeClip(ecmascript::JSDate::MakeDate(day, time)); in HWTEST_F_L0()
Djs_date_time_format_test.cpp550 …auto day = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray1), 4).Ge… in HWTEST_F_L0() local
559 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, day).c_str(), "day"); in HWTEST_F_L0()
560 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, day).c_str(), "25"); in HWTEST_F_L0()
610 …auto day = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray), 4).Get… in HWTEST_F_L0() local
630 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, day).c_str(), "day"); in HWTEST_F_L0()
631 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, day).c_str(), "25"); in HWTEST_F_L0()
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dreadme.md22 The daily run will download the SDK built on the current day from the trunk branch and use it to pe…
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_date_time_format_test.cpp151 const double day = JSDate::MakeDay(year, month, date); in BuiltinsDateCreate() local
153 double days = JSDate::MakeDate(day, time); in BuiltinsDateCreate()
/arkcompiler/runtime_core/
DCMakeLists.txt344 # depend on tests some day.
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp2248 double RuntimeStubs::SetDateValues(double year, double month, double day) in SetDateValues() argument
2250 …n(year) || !std::isfinite(year) || std::isnan(month) || !std::isfinite(month) || std::isnan(day) || in SetDateValues()
2251 !std::isfinite(day)) { in SetDateValues()
2255 …:SetDateValues(static_cast<int64_t>(year), static_cast<int64_t>(month), static_cast<int64_t>(day)); in SetDateValues()
Druntime_stubs.h384 static double SetDateValues(double year, double month, double day);
/arkcompiler/ets_frontend/testTs/
Dtest-case.patch4447 +console.log(rtf1.format(-1, 'day'));
4448 +//expected output: "1 day ago"
4452 +console.log(rtf2.format(2, 'day'));
10622 + model: 'hour' | 'day';
10628 + model: 'hour' | 'day'
10633 + model: 'hour' | 'day';
10637 + model(duration: number): 'hour' | 'day';
10642 + model: 'hour' | 'day';
10646 + model: 'hour' | 'day'