Searched refs:hour (Results 1 - 9 of 9) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | time.cpp | 44 int hour = nowtm.tm_hour; 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/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_runtime/test/aottest/formatrangetoparts/ |
H A D | formatrangetoparts.js | 33 hour: "numeric", minute: "numeric", second: "numeric"
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | date_parse.cpp | 97 DateUnit hour = proxy->GetDate(); in ParseIsoDateTime() local 98 if (!hour.IsTwoDecimalDigit()) { in ParseIsoDateTime() 101 timeValue->SetData(hour.GetValue()); in ParseIsoDateTime() 258 // 2: hour length in ParseLegacyDates()
|
H A D | js_relative_time_format.cpp | 179 // 4. If unit is "hours" or "hour", return "hour". in SingularUnitToIcuUnit() 188 JSHandle<EcmaString> hour = JSHandle<EcmaString>::Cast(globalConst->GetHandledHourString()); in SingularUnitToIcuUnit() local 210 } else if (EcmaStringAccessor::StringsAreEqual(*hour, *unit) || in SingularUnitToIcuUnit() 271 // 10. If unit is not one of "second", "minute", "hour", "day", "week", "month", "quarter", or "year", throw a in GetIcuFormatted() 303 JSHandle<EcmaString> hour = JSHandle<EcmaString>::Cast(globalConst->GetHandledHourString()); in SingularUnitString() local 326 // 4. If unit is "hours" or "hour", return "hour". in SingularUnitString() 327 if (EcmaStringAccessor::StringsAreEqual(*hour, *unit) || EcmaStringAccessor::StringsAreEqual(*hours, *unit)) { in SingularUnitString() 328 return hour; in SingularUnitString() [all...] |
H A D | date_parse.h | 359 void SetHour(int hour)
in SetHour() argument 361 hour_ = hour;
in SetHour() 419 // 24: max hour
in HourIsValid()
|
H A D | js_date.h | 101 static double MakeTime(double hour, double min, double sec, double ms);
|
H A D | js_date.cpp | 40 (*date)[HOUR] = Mod(timeMs, MS_PER_DAY); // ms from hour, minutes, second, ms in TransferTimeToDate() 43 (*date)[HOUR] = ((*date)[HOUR] - (*date)[MS]) / MS_PER_SECOND; // s from hour, minutes, second in TransferTimeToDate() 45 (*date)[HOUR] = ((*date)[HOUR] - (*date)[SEC]) / SEC_PER_MINUTE; // min from hour, minutes in TransferTimeToDate() 47 (*date)[HOUR] = ((*date)[HOUR] - (*date)[MIN]) / SEC_PER_MINUTE; // hour in TransferTimeToDate() 138 double JSDate::MakeTime(double hour, double min, double sec, double ms) 140 if (std::isfinite(hour) && std::isfinite(min) && std::isfinite(sec) && std::isfinite(ms)) { 141 double hourInteger = NumberHelper::TruncateDouble(hour);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_date_time_format_second_test.cpp | 68 { "hour", "2-digit" }, in FormatCommonSet() 208 auto hour = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(dateTimeArray), 9).GetValue(); in CheckOther() local 210 EXPECT_STREQ(GetDateTimePartStringTest(thread, typeKey, hour).c_str(), "hour"); in CheckOther() 211 EXPECT_STREQ(GetDateTimePartStringTest(thread, valueKey, hour).c_str(), "11"); in CheckOther() 252 { "hour", "2-digit" }, in HWTEST_F_L0()
|
Completed in 7 milliseconds