@bbn/bbn 2.0.144 → 2.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/classes/dt.js +4 -4
- package/package.json +1 -1
package/dist/dt/classes/dt.js
CHANGED
|
@@ -214,8 +214,8 @@ export class bbnDt {
|
|
|
214
214
|
if (typeof rawA.until !== 'function') {
|
|
215
215
|
throw new TypeError('This Temporal type does not support until/since');
|
|
216
216
|
}
|
|
217
|
-
const diff = rawA.until(rawB, { smallestUnit: realUnit, largestUnit: realUnit });
|
|
218
|
-
bbn.fn.log(['compare0', diff, realUnit, diff.sign, a.date(), b.date(), rawA.day, rawB.day]);
|
|
217
|
+
const diff = rawA.until(rawB, { smallestUnit: realUnit, largestUnit: realUnit, roundingMode: 'floor' });
|
|
218
|
+
//bbn.fn.log(['compare0', diff, realUnit, diff.sign, a.date(), b.date(), rawA.day, rawB.day]);
|
|
219
219
|
return diff.sign;
|
|
220
220
|
}
|
|
221
221
|
// ---- CASE 2: different constructors, but convertible bbnDt kinds ----
|
|
@@ -237,8 +237,8 @@ export class bbnDt {
|
|
|
237
237
|
if (typeof za.until !== 'function') {
|
|
238
238
|
throw new TypeError('ZonedDateTime does not support until/since');
|
|
239
239
|
}
|
|
240
|
-
const diff = za.until(zb, { largestUnit: realUnit, roundingMode: 'floor' });
|
|
241
|
-
bbn.fn.log(['compare', diff, realUnit, diff.sign, a.date(), b.date()]);
|
|
240
|
+
const diff = za.until(zb, { smallestUnit: realUnit, largestUnit: realUnit, roundingMode: 'floor' });
|
|
241
|
+
//bbn.fn.log(['compare', diff, realUnit, diff.sign, a.date(), b.date(), za.day, zb.day]);
|
|
242
242
|
return diff.sign;
|
|
243
243
|
}
|
|
244
244
|
// ---- CASE 3: not compatible ----
|