@acorex/core 20.6.2 → 20.6.4

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.
@@ -282,7 +282,7 @@ class AXDateTime {
282
282
  return p == 0 ? func(this.second, val.second) : p;
283
283
  case 'ms':
284
284
  default:
285
- return func(this.date.getTime(), val.date.getTime());
285
+ return func(this.date?.getTime(), val.date?.getTime());
286
286
  }
287
287
  }
288
288
  /**
@@ -376,8 +376,8 @@ class AXDateTimeRange {
376
376
  // Average lengths for approximate total months/years
377
377
  const ONE_YEAR_AVG = 365.25 * ONE_DAY;
378
378
  const ONE_MONTH_AVG = ONE_YEAR_AVG / 12;
379
- const startTime = this._startTime.date.getTime();
380
- const endTime = this._endTime.date.getTime();
379
+ const startTime = this._startTime.date?.getTime();
380
+ const endTime = this._endTime.date?.getTime();
381
381
  // Calculate the absolute difference in milliseconds
382
382
  const diff = Math.abs(endTime - startTime);
383
383
  // --- Calculate Total Durations ---