Lines Matching refs:hours

92   int64_t hours;
163 Isolate* isolate, Handle<BigInt> epoch_nanoseconds, int64_t hours,
169 Isolate* isolate, int64_t* days, int64_t* hours, int64_t* minutes,
266 int64_t hours, int64_t minutes, int64_t seconds, int64_t milliseconds,
270 int64_t TotalDurationNanoseconds(Isolate* isolate, int64_t days, int64_t hours,
795 int64_t years, int64_t months, int64_t weeks, int64_t days, int64_t hours,
800 // 1. If ! IsValidDuration(years, months, weeks, days, hours, minutes,
804 {years, months, weeks, days, hours, minutes, seconds,
829 // 8. Set object.[[Hours]] to hours.
830 SET_FROM_INT64(object, hours);
848 int64_t days, int64_t hours, int64_t minutes, int64_t seconds,
853 days, hours, minutes, seconds, milliseconds,
2221 // 6. Let hours be floor(offsetNanoseconds / (3.6 × 10^12)).
2222 int64_t hours = offset_nanoseconds / 3600000000000;
2223 // 7. Let h be hours, formatted as a two-digit decimal number, padded to the
2225 if (hours < 10) {
2228 builder.AppendInt(static_cast<int32_t>(hours));
2565 // 3. Let z, sign, hours, minutes, seconds, fraction and name be the parts of
2586 // 5. If hours is undefined, then
2594 // b. Set hours to ! ToIntegerOrInfinity(hours).
2595 int32_t hours = parsed.tzuo_hour;
2619 // i. Let offsetNanoseconds be sign × (((hours × 60 + minutes) × 60 +
2623 (((hours * 60 + minutes) * 60 + seconds) * 1000000000L + nanoseconds);
2709 // 3. Let sign, hours, minutes, seconds, and fraction be the parts of
2713 // 4. If either hours or sign are undefined, throw a RangeError exception.
2724 // 7. Set hours to ! ToIntegerOrInfinity(hours).
2725 int64_t hours = parsed.tzuo_hour;
2744 // 12. Return sign × (((hours × 60 + minutes) × 60 + seconds) × 10^9 +
2746 return Just(sign * (((hours * 60 + minutes) * 60 + seconds) * 1000000000 +
3556 // microsecond, nanosecond, hours, minutes, seconds, milliseconds,
3560 nanosecond, dur.hours, dur.minutes, dur.seconds, dur.milliseconds,
3596 Maybe<bool> BalanceDuration(Isolate* isolate, int64_t* days, int64_t* hours,
3604 return BalanceDuration(isolate, days, hours, minutes, seconds, milliseconds,
3609 Maybe<bool> BalanceDuration(Isolate* isolate, int64_t* days, int64_t* hours,
3623 // relativeTo.[[TimeZone]], relativeTo.[[Calendar]], 0, 0, 0, days, hours,
3632 {0, 0, 0, *days, *hours, *minutes, *seconds,
3645 // a. Set nanoseconds to ℤ(! TotalDurationNanoseconds(days, hours, minutes,
3648 TotalDurationNanoseconds(isolate, *days, *hours, *minutes, *seconds,
3668 // 6. Set hours, minutes, seconds, milliseconds, and microseconds to 0.
3669 *hours = *minutes = *seconds = *milliseconds = *microseconds = 0;
3699 // i. Set hours to floor(minutes / 60).
3700 *hours = floor_divide(*minutes, 60);
3762 // 16. Return the new Record { [[Days]]: ?(days), [[Hours]]: ?(hours × sign),
3766 *hours *= sign;
3803 // a. Return ! AddInstant(epochNanoseconds, hours, minutes, seconds,
3805 return AddInstant(isolate, epoch_nanoseconds, duration.hours,
3872 // 10. Return ! AddInstant(intermediateInstant.[[Nanoseconds]], hours,
3876 duration.hours, duration.minutes, duration.seconds, duration.milliseconds,
4124 result.hours = time_difference.hours;
4157 result.hours = time_difference.hours;
4165 isolate, &(result.days), &(result.hours), &(result.minutes),
4209 isolate, &(result.days), &(result.hours), &(result.minutes),
4229 Handle<BigInt> epoch_nanoseconds, int64_t hours,
4235 // 1. Assert: hours, minutes, seconds, milliseconds, microseconds, and
4239 // ℤ(minutes) × 60ℤ × 10^9ℤ + ℤ(hours) × 3600ℤ × 10^9ℤ.
4284 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, hours),
4365 // 1. For each value v of « years, months, weeks, days, hours, minutes,
4377 if (dur.hours < 0) return -1;
4378 if (dur.hours > 0) return 1;
4396 // 1. Let sign be ! DurationSign(years, months, weeks, days, hours, minutes,
4399 // 2. For each value v of « years, months, weeks, days, hours, minutes,
4405 dur.days < 0 || dur.hours < 0 || dur.minutes < 0 ||
4409 dur.days > 0 || dur.hours > 0 || dur.minutes > 0 ||
4588 // 2. Let hours be h2 − h1.
4589 dur.hours = h2 - h1;
4600 // 8. Let sign be ! DurationSign(0, 0, 0, 0, hours, minutes, seconds,
4605 // 9. Let bt be ! BalanceTime(hours × sign, minutes × sign, seconds × sign,
4608 isolate, dur.hours * sign, dur.minutes * sign, dur.seconds * sign,
4632 int64_t hours, int64_t minutes, int64_t seconds,
4638 // hours, minutes, seconds, milliseconds, microseconds, and nanoseconds are
4640 // 2. Let hour be hour + hours.
4641 return BalanceTime(isolate, hour + hours,
4657 int64_t TotalDurationNanoseconds(Isolate* isolate, int64_t days, int64_t hours,
4671 // 4. Set hours to ℝ(hours) + ℝ(days) × 24.
4672 hours += days * 24;
4674 // 5. Set minutes to ℝ(minutes) + hours × 60.
4675 minutes += hours * 60;
4696 Handle<Object> days, Handle<Object> hours, Handle<Object> minutes,
4737 // 6. Let h be ? ToIntegerThrowOnInfinity(hours).
4740 ToIntegerThrowOnInfinity(isolate, hours),
4800 NumberToInt64(duration->hours()), NumberToInt64(duration->minutes()),
4824 NumberToInt64(duration->hours()), NumberToInt64(duration->minutes()),
4849 -NumberToInt64(duration->days()), -NumberToInt64(duration->hours()),
4885 std::abs(NumberToInt64(duration->hours())),