Home
last modified time | relevance | path

Searched refs:timeValue (Results 1 – 3 of 3) sorted by relevance

/ark/js_runtime/ecmascript/
Djs_date.cpp293 double timeValue = TimeClip(MakeDate(day, time)); in LocalParseStringToMs() local
294 if (std::isnan(timeValue)) { in LocalParseStringToMs()
295 return JSTaggedValue(timeValue); in LocalParseStringToMs()
297 … if (isLocal && timeValue < CHINA_1901_MS && (-localMs / MS_PER_MINUTE) == CHINA_AFTER_1901_MIN) { in LocalParseStringToMs()
298 timeValue += static_cast<double>(localMs - CHINA_BEFORE_1901_MS); in LocalParseStringToMs()
300 timeValue += localMs; in LocalParseStringToMs()
302 return JSTaggedValue(timeValue); in LocalParseStringToMs()
361 double timeValue = TimeClip(MakeDate(day, time)); in UtcParseStringToMs() local
362 if (std::isnan(timeValue)) { in UtcParseStringToMs()
363 return JSTaggedValue(timeValue); in UtcParseStringToMs()
[all …]
Djs_serializer.cpp351 double timeValue = date->GetTimeValue().GetDouble(); in WriteJSDate() local
352 if (!WriteDouble(timeValue)) { in WriteJSDate()
917 double timeValue; in ReadJSDate() local
918 if (!JudgeType(SerializationUID::DOUBLE) || !ReadDouble(&timeValue)) { in ReadJSDate()
921 date->SetTimeValue(thread_, JSTaggedValue(timeValue)); in ReadJSDate()
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_date.cpp42 JSTaggedValue timeValue(0.0); in DateConstructor() local
45 timeValue = JSDate::Now(); in DateConstructor()
50 timeValue = jsDate->GetTimeValue(); in DateConstructor()
56 timeValue = JSDate::Parse(argv); in DateConstructor()
60 timeValue = JSTaggedValue(val.GetNumber()); in DateConstructor()
62 timeValue = JSTaggedValue(JSDate::TimeClip(timeValue.GetDouble())); in DateConstructor()
84timeValue = JSTaggedValue((i == length) ? JSDate::SetDateValues(&fields, true) : base::NAN_VALUE); in DateConstructor()
92 dateObject->SetTimeValue(thread, timeValue); in DateConstructor()