Lines Matching refs:time_val
139 void ToDateString(double time_val, Vector<char> str, DateCache* date_cache, in ToDateString() argument
141 if (std::isnan(time_val)) { in ToDateString()
145 int64_t time_ms = static_cast<int64_t>(time_val); in ToDateString()
177 double time_val) { in SetLocalDateValue() argument
178 if (time_val >= -DateCache::kMaxTimeBeforeUTCInMs && in SetLocalDateValue()
179 time_val <= DateCache::kMaxTimeBeforeUTCInMs) { in SetLocalDateValue()
180 time_val = isolate->date_cache()->ToUTC(static_cast<int64_t>(time_val)); in SetLocalDateValue()
182 time_val = std::numeric_limits<double>::quiet_NaN(); in SetLocalDateValue()
184 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in SetLocalDateValue()
193 double const time_val = JSDate::CurrentTimeValue(isolate); in BUILTIN() local
195 ToDateString(time_val, ArrayVector(buffer), isolate->date_cache()); in BUILTIN()
203 double time_val; in BUILTIN() local
205 time_val = JSDate::CurrentTimeValue(isolate); in BUILTIN()
209 time_val = Handle<JSDate>::cast(value)->value()->Number(); in BUILTIN()
214 time_val = ParseDateTimeString(isolate, Handle<String>::cast(value)); in BUILTIN()
218 time_val = value->Number(); in BUILTIN()
267 time_val = MakeDate(day, time); in BUILTIN()
268 if (time_val >= -DateCache::kMaxTimeBeforeUTCInMs && in BUILTIN()
269 time_val <= DateCache::kMaxTimeBeforeUTCInMs) { in BUILTIN()
270 time_val = isolate->date_cache()->ToUTC(static_cast<int64_t>(time_val)); in BUILTIN()
272 time_val = std::numeric_limits<double>::quiet_NaN(); in BUILTIN()
275 RETURN_RESULT_OR_FAILURE(isolate, JSDate::New(target, new_target, time_val)); in BUILTIN()
361 double time_val = date->value()->Number(); in BUILTIN() local
362 if (!std::isnan(time_val)) { in BUILTIN()
363 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
369 time_val = MakeDate(MakeDay(year, month, value->Number()), time_within_day); in BUILTIN()
371 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
406 double time_val = MakeDate(MakeDay(y, m, dt), time_within_day); in BUILTIN() local
407 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
419 double time_val = date->value()->Number(); in BUILTIN() local
420 if (!std::isnan(time_val)) { in BUILTIN()
421 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
446 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
448 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
458 double time_val = date->value()->Number(); in BUILTIN() local
459 if (!std::isnan(time_val)) { in BUILTIN()
460 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
467 time_val = MakeDate(day, MakeTime(h, m, s, ms->Number())); in BUILTIN()
469 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
480 double time_val = date->value()->Number(); in BUILTIN() local
481 if (!std::isnan(time_val)) { in BUILTIN()
482 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
502 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
504 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
515 double time_val = date->value()->Number(); in BUILTIN() local
516 if (!std::isnan(time_val)) { in BUILTIN()
517 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
531 time_val = MakeDate(MakeDay(year, m, dt), time_within_day); in BUILTIN()
533 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
544 double time_val = date->value()->Number(); in BUILTIN() local
545 if (!std::isnan(time_val)) { in BUILTIN()
546 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
560 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
562 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()
588 double const time_val = in BUILTIN() local
590 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
624 double const time_val = MakeDate(MakeDay(y, m, dt), time_within_day); in BUILTIN() local
625 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
637 double time_val = date->value()->Number(); in BUILTIN() local
638 if (!std::isnan(time_val)) { in BUILTIN()
639 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
663 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
665 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
675 double time_val = date->value()->Number(); in BUILTIN() local
676 if (!std::isnan(time_val)) { in BUILTIN()
677 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
683 time_val = MakeDate(day, MakeTime(h, m, s, ms->Number())); in BUILTIN()
685 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
696 double time_val = date->value()->Number(); in BUILTIN() local
697 if (!std::isnan(time_val)) { in BUILTIN()
698 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
717 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
719 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
730 double time_val = date->value()->Number(); in BUILTIN() local
731 if (!std::isnan(time_val)) { in BUILTIN()
732 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
745 time_val = MakeDate(MakeDay(year, m, dt), time_within_day); in BUILTIN()
747 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
758 double time_val = date->value()->Number(); in BUILTIN() local
759 if (!std::isnan(time_val)) { in BUILTIN()
760 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
773 time_val = MakeDate(day, MakeTime(h, m, s, milli)); in BUILTIN()
775 return *JSDate::SetValue(date, DateCache::TimeClip(time_val)); in BUILTIN()
793 double const time_val = date->value()->Number(); in BUILTIN() local
794 if (std::isnan(time_val)) { in BUILTIN()
798 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN()
842 double const time_val = date->value()->Number(); in BUILTIN() local
843 if (std::isnan(time_val)) { in BUILTIN()
847 int64_t time_ms = static_cast<int64_t>(time_val); in BUILTIN()
861 double time_val = date->value()->Number(); in BUILTIN() local
862 if (std::isnan(time_val)) return date->value(); in BUILTIN()
863 int64_t time_ms = static_cast<int64_t>(time_val); in BUILTIN()
893 double time_val = MakeDate(MakeDay(y, m, dt), time_within_day); in BUILTIN() local
894 return SetLocalDateValue(isolate, date, time_val); in BUILTIN()