Lines Matching refs:days

91   int64_t days;
169 Isolate* isolate, int64_t* days, int64_t* hours, int64_t* minutes,
270 int64_t TotalDurationNanoseconds(Isolate* isolate, int64_t days, int64_t hours,
386 * = (-9999 x 10^3, 9999 x 10^3) days => Because 60*60*24 = 86400
387 * 9999000 days is about 27376 years, 4 months and 7 days.
388 * Therefore 9999000 days before Jan 1 1970 is around Auguest 23, -25407 and
389 * 9999000 days after Jan 1 1970 is around April 9, 29346.
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,
827 // 7. Set object.[[Days]] to days.
828 SET_FROM_INT64(object, days);
848 int64_t days, int64_t hours, int64_t minutes, int64_t seconds,
853 days, hours, minutes, seconds, milliseconds,
3481 // 5. NOTE: To deal with negative numbers of days whose absolute value is
3482 // greater than the number of days in a year, the following section subtracts
3483 // years and adds days until the number of days is greater than −366 or −365.
3499 // 9. NOTE: To deal with numbers of days greater than the number of days in a
3500 // year, the following section adds years and subtracts days until the number
3501 // of days is less than 366 or 365.
3513 // 12. NOTE: To deal with negative numbers of days whose absolute value is
3514 // greater than the number of days in the current month, the following section
3515 // subtracts months and adds days until the number of days is greater than 0.
3526 // 14. NOTE: To deal with numbers of days greater than the number of days in
3527 // the current month, the following section adds months and subtracts days
3528 // until the number of days is less than the number of days in the month.
3569 // 4. Let dateDuration be ? CreateTemporalDuration(years, months, weeks, days
3575 dur.days + time_result.day, 0, 0, 0, 0, 0, 0),
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,
3657 NanosecondsToDays(isolate, *nanoseconds, relative_to_obj, days,
3661 // b. Set days to result.[[Days]].
3665 // a. Set days to 0.
3666 *days = 0;
3762 // 16. Return the new Record { [[Days]]: ?(days), [[Hours]]: ?(hours × sign),
3800 // 2. If all of years, months, weeks, and days are 0, then
3802 duration.days == 0) {
3832 // 6. Let dateDuration be ? CreateTemporalDuration(years, months, weeks, days,
3838 duration.weeks, duration.days, 0, 0, 0, 0, 0, 0),
4012 // 14. Let days be dateDifference.[[Days]].
4013 int64_t days = date_difference.days;
4016 // relativeTo.[[TimeZone]], relativeTo.[[Calendar]], 0, 0, 0, days, 0, 0, 0,
4022 {0, 0, 0, days, 0, 0, 0, 0, 0, 0}, method_name),
4027 // a. Repeat, while days > 0 and intermediateNs > endNs,
4028 while (days > 0 && BigInt::CompareToBigInt(intermediate_ns, end_ns) ==
4030 // i. Set days to days − 1.
4031 days -= 1;
4033 // relativeTo.[[TimeZone]], relativeTo.[[Calendar]], 0, 0, 0, days, 0, 0,
4038 {0, 0, 0, days, 0, 0, 0, 0, 0, 0}, method_name),
4082 // iii. Set days to days + sign.
4083 days += sign;
4091 // 20. Return the new Record { [[Days]]: days, [[Nanoseconds]]: nanoseconds,
4093 *result_days = days;
4142 int32_t balanced_day = d1 + static_cast<int32_t>(time_difference.days);
4156 result.days = -time_sign;
4165 isolate, &(result.days), &(result.hours), &(result.minutes),
4206 result.days = NumberToInt64(date_difference->days());
4209 isolate, &(result.days), &(result.hours), &(result.minutes),
4365 // 1. For each value v of « years, months, weeks, days, hours, minutes,
4375 if (dur.days < 0) return -1;
4376 if (dur.days > 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 ||
4560 // 12. Let days be floor(hour / 24).
4561 int64_t days = floor_divide(hour, 24L);
4564 // 14. Return the new Record { [[Days]]: days, [[Hour]]: hour, [[Minute]]:
4569 static_cast<int32_t>(days),
4657 int64_t TotalDurationNanoseconds(Isolate* isolate, int64_t days, int64_t hours,
4665 // 3. If days ≠ 0, then
4666 if (days != 0) {
4671 // 4. Set hours to ℝ(hours) + ℝ(days) × 24.
4672 hours += days * 24;
4696 Handle<Object> days, Handle<Object> hours, Handle<Object> minutes,
4730 // 5. Let d be ? ToIntegerThrowOnInfinity(days).
4733 ToIntegerThrowOnInfinity(isolate, days),
4799 NumberToInt64(duration->weeks()), NumberToInt64(duration->days()),
4823 NumberToInt64(duration->weeks()), NumberToInt64(duration->days()),
4849 -NumberToInt64(duration->days()), -NumberToInt64(duration->hours()),
4884 std::abs(NumberToInt64(duration->days())),
4958 // Weekday() expect "the number of days since the epoch" as input and the
4960 // days" because the number of days on the epoch (1970/1/1) should be 0,