@ts-core/angular 15.0.38 → 15.0.39

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.
@@ -6470,11 +6470,20 @@ class DateValueStorage extends ValueStorage {
6470
6470
  // Public Methods
6471
6471
  //
6472
6472
  //--------------------------------------------------------------------------
6473
+ isMore(item) {
6474
+ return this.has() ? this.get().getTime() > item.getTime() : false;
6475
+ }
6476
+ isLess(item) {
6477
+ return this.has() ? this.get().getTime() < item.getTime() : false;
6478
+ }
6479
+ isEqual(item) {
6480
+ return this.has() ? this.get().getTime() === item.getTime() : false;
6481
+ }
6473
6482
  isExpired(item) {
6474
- if (_.isNil(item)) {
6475
- item = new Date();
6476
- }
6477
- return this.has() ? this.get().getTime() < item.getTime() : true;
6483
+ return this.has() ? this.isLess(item) : true;
6484
+ }
6485
+ isExpiredFromNow(delta = 0) {
6486
+ return this.isExpired(DateUtil.getDate(Date.now() + delta));
6478
6487
  }
6479
6488
  }
6480
6489