Skip to content

Commit 0e0534f

Browse files
committed
Deploying to gh-pages from @ 728beeb 🚀
1 parent 6b79d6a commit 0e0534f

File tree

3 files changed

+34
-36
lines changed

3 files changed

+34
-36
lines changed

docs/playground.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -10866,9 +10866,7 @@
1086610866
function CombineDateAndTimeDuration(dateDuration, timeDuration) {
1086710867
const dateSign = DateDurationSign(dateDuration);
1086810868
const timeSign = timeDuration.sign();
10869-
if (dateSign !== 0 && timeSign !== 0 && dateSign !== timeSign) {
10870-
throw new RangeError$1('mixed-sign values not allowed as duration fields');
10871-
}
10869+
assert(dateSign === 0 || timeSign === 0 || dateSign === timeSign, 'should not be able to create mixed sign duration fields here');
1087210870
return {
1087310871
date: dateDuration,
1087410872
time: timeDuration
@@ -10927,11 +10925,11 @@
1092710925
AssertISODateTimeWithinLimits(isoDateTime2);
1092810926
let timeDuration = DifferenceTime(isoDateTime1.time, isoDateTime2.time);
1092910927
const timeSign = timeDuration.sign();
10930-
const dateSign = CompareISODate(isoDateTime2.isoDate, isoDateTime1.isoDate);
10928+
const dateSign = CompareISODate(isoDateTime1.isoDate, isoDateTime2.isoDate);
1093110929

1093210930
// back-off a day from date2 so that the signs of the date and time diff match
1093310931
let adjustedDate = isoDateTime2.isoDate;
10934-
if (dateSign === -timeSign) {
10932+
if (dateSign === timeSign) {
1093510933
adjustedDate = BalanceISODate(adjustedDate.year, adjustedDate.month, adjustedDate.day + timeSign);
1093610934
timeDuration = timeDuration.add24HourDays(-timeSign);
1093710935
}

docs/playground.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+30-30
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)