wsp-ms-core 1.1.7 → 1.1.8

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/index.cjs CHANGED
@@ -162,6 +162,12 @@ var _DateTime = class _DateTime extends ValueObject {
162
162
  right.diff(left, "days").days
163
163
  );
164
164
  }
165
+ diffInDaysInclusive(other) {
166
+ const left = this._dt.startOf("day");
167
+ const right = other._dt.startOf("day");
168
+ const days = Math.floor(right.diff(left, "days").days);
169
+ return days >= 0 ? days + 1 : days - 1;
170
+ }
165
171
  diffInDaysAbs(other) {
166
172
  return Math.abs(this.diffInDays(other));
167
173
  }