Skip to content

Commit

Permalink
Deploying to gh-pages from @ 728beeb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Dec 5, 2024
1 parent 6b79d6a commit 0e0534f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
8 changes: 3 additions & 5 deletions docs/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -10866,9 +10866,7 @@
function CombineDateAndTimeDuration(dateDuration, timeDuration) {
const dateSign = DateDurationSign(dateDuration);
const timeSign = timeDuration.sign();
if (dateSign !== 0 && timeSign !== 0 && dateSign !== timeSign) {
throw new RangeError$1('mixed-sign values not allowed as duration fields');
}
assert(dateSign === 0 || timeSign === 0 || dateSign === timeSign, 'should not be able to create mixed sign duration fields here');
return {
date: dateDuration,
time: timeDuration
Expand Down Expand Up @@ -10927,11 +10925,11 @@
AssertISODateTimeWithinLimits(isoDateTime2);
let timeDuration = DifferenceTime(isoDateTime1.time, isoDateTime2.time);
const timeSign = timeDuration.sign();
const dateSign = CompareISODate(isoDateTime2.isoDate, isoDateTime1.isoDate);
const dateSign = CompareISODate(isoDateTime1.isoDate, isoDateTime2.isoDate);

// back-off a day from date2 so that the signs of the date and time diff match
let adjustedDate = isoDateTime2.isoDate;
if (dateSign === -timeSign) {
if (dateSign === timeSign) {
adjustedDate = BalanceISODate(adjustedDate.year, adjustedDate.month, adjustedDate.day + timeSign);
timeDuration = timeDuration.add24HourDays(-timeSign);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/playground.js.map

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions index.html

Large diffs are not rendered by default.

0 comments on commit 0e0534f

Please sign in to comment.