Home
last modified time | relevance | path

Searched refs:month (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dtime.cpp42 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/
Djs_date.cpp109 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 …]
Djs_date.h94 static double MakeDay(double year, double month, double date);
161 static double SetDateValues(int64_t year, int64_t month, int64_t day);
Ddate_parse.h487 void SetMonth(int month) in SetMonth() argument
489 month_ = month; in SetMonth()
Djs_relative_time_format.cpp191 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()
Dobject_fast_operator-inl.h458 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()
Dglobal_env_constants.h300 …V(JSTaggedValue, MonthString, MONTH_STRING_INDEX, month) …
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DuseRegexpGroups.ts47 let month1 = result.groups.month;
49 AssertType(result.groups.month, "string");
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.h145 inline GateRef IsNumberYearMonthDay(GateRef year, GateRef month, GateRef day) in IsNumberYearMonthDay() argument
147 GateRef condition = BoolAnd(TaggedIsNumber(year), TaggedIsNumber(month)); in IsNumberYearMonthDay()
Dbuiltins_stubs.cpp1046 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/
Djs_date_time_format_test.cpp548 …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/
Dlib_ark_builtins.d.ts204 …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/
Dtest262skiplist-long.txt20 built-ins/Date/prototype/toUTCString/month-names.js
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_date_time_format_test.cpp149 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/
Druntime_stubs.cpp2249 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()
Druntime_stubs.h384 static double SetDateValues(double year, double month, double day);