/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
D | time.cpp | 42 int month = nowtm.tm_mon + 1; in IsDst() local 52 if (month > stDSTStart.wMonth && month < stDSTEnd.wMonth) { in IsDst() 54 } else if (month == stDSTStart.wMonth) { in IsDst() 58 } else if (month == stDSTEnd.wMonth) { in IsDst()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_date.cpp | 109 int64_t month = mp + (mp < MONTH_TRANSFORM[1] ? in GetYearFromDays() local 111 int64_t year = y + (month <= MONTH_COEFFICIENT); in GetYearFromDays() 112 month -= 1; in GetYearFromDays() 115 (*date)[MONTH] = month; in GetYearFromDays() 118 preMonth_ = month; in GetYearFromDays() 148 double JSDate::MakeDay(double year, double month, double date) in MakeDay() argument 150 if (std::isfinite(year) && std::isfinite(month) && std::isfinite(date)) { in MakeDay() 152 double monthInteger = NumberHelper::TruncateDouble(month); in MakeDay() 260 int month = 0; in LocalParseStringToMs() local 284 month = i; in LocalParseStringToMs() [all …]
|
D | js_date.h | 94 static double MakeDay(double year, double month, double date); 161 static double SetDateValues(int64_t year, int64_t month, int64_t day);
|
D | date_parse.h | 487 void SetMonth(int month) in SetMonth() argument 489 month_ = month; in SetMonth()
|
D | js_relative_time_format.cpp | 191 JSHandle<EcmaString> month = JSHandle<EcmaString>::Cast(globalConst->GetHandledMonthString()); in SingularUnitToIcuUnit() local 219 } else if (EcmaStringAccessor::StringsAreEqual(*month, *unit) || in SingularUnitToIcuUnit() 306 JSHandle<EcmaString> month = JSHandle<EcmaString>::Cast(globalConst->GetHandledMonthString()); in SingularUnitString() local 339 …if (EcmaStringAccessor::StringsAreEqual(*month, *unit) || EcmaStringAccessor::StringsAreEqual(*mon… in SingularUnitString() 340 return month; in SingularUnitString()
|
D | object_fast_operator-inl.h | 458 int month = 1; in FastParseDate() local 469 if (!GetNumFromString(data, len, &index, &month)) { in FastParseDate() 475 if (month < 1 || month > JSDate::MONTH_PER_YEAR) { in FastParseDate() 481 double day = JSDate::MakeDay(year, month - 1, date); in FastParseDate()
|
D | global_env_constants.h | 300 …V(JSTaggedValue, MonthString, MONTH_STRING_INDEX, month) …
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | useRegexpGroups.ts | 47 let month1 = result.groups.month; 49 AssertType(result.groups.month, "string");
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_stubs.h | 145 inline GateRef IsNumberYearMonthDay(GateRef year, GateRef month, GateRef day) in IsNumberYearMonthDay() argument 147 GateRef condition = BoolAnd(TaggedIsNumber(year), TaggedIsNumber(month)); in IsNumberYearMonthDay()
|
D | builtins_stubs.cpp | 1046 GateRef month = GetArgNCheck(IntPtr(1)); in DECLARE_BUILTINS() local 1048 Branch(IsNumberYearMonthDay(year, month, day), &numberYearMonthDay, &slowPath); in DECLARE_BUILTINS() 1052 GateRef m = GetDoubleOfTNumber(month); in DECLARE_BUILTINS()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_time_format_test.cpp | 548 …auto month = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray1), 2).… in HWTEST_F_L0() local 555 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, month).c_str(), "month"); in HWTEST_F_L0() 556 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, month).c_str(), "5"); in HWTEST_F_L0() 608 …auto month = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray), 2).G… in HWTEST_F_L0() local 626 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, month).c_str(), "month"); in HWTEST_F_L0() 627 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, month).c_str(), "05"); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | lib_ark_builtins.d.ts | 204 …constructor(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?… 244 setFullYear(year: number, month?: number, date?: number): number; 252 setMonth(month: number, date?: number): number; 260 setUTCFullYear(year: number, month?: number, date?: number): number; 268 setUTCMonth(month: number, date?: number): number; 294 …static UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?:…
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist-long.txt | 20 built-ins/Date/prototype/toUTCString/month-names.js
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_date_time_format_test.cpp | 149 static double BuiltinsDateCreate(const double year, const double month, const double date) in BuiltinsDateCreate() argument 151 const double day = JSDate::MakeDay(year, month, date); in BuiltinsDateCreate()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 2249 double RuntimeStubs::SetDateValues(double year, double month, double day) in SetDateValues() argument 2251 …if (std::isnan(year) || !std::isfinite(year) || std::isnan(month) || !std::isfinite(month) || std:… in SetDateValues() 2256 …return JSDate::SetDateValues(static_cast<int64_t>(year), static_cast<int64_t>(month), static_cast<… in SetDateValues()
|
D | runtime_stubs.h | 384 static double SetDateValues(double year, double month, double day);
|