@elderbyte/ngx-starter 13.5.0 → 13.5.1

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.
@@ -30,11 +30,11 @@ export declare class Interval {
30
30
  static today(zoneId: ZoneId): Interval;
31
31
  /**
32
32
  * Creates a Interval from a Date by spreading it to the begin and end of its day.
33
- *
34
- * @param localDate Date to spread
33
+ * @param date Date to spread
35
34
  */
36
- static ofDayDate(localDate: Date): Interval;
35
+ static ofDayDate(date: Date): Interval;
37
36
  static ofDay(day: LocalDate, zoneId: ZoneId): Interval;
37
+ static betweenDays(startDayInclusive: LocalDate, endDayExclusive: LocalDate, zoneId: ZoneId): Interval;
38
38
  /**
39
39
  * Creates a new interval with the given start time point
40
40
  * and a offset from the start.
@@ -1,4 +1,4 @@
1
- import { Duration, Instant, LocalDate, ZonedDateTime, ZoneId } from '@js-joda/core';
1
+ import { Duration, Instant, LocalDate, TemporalAccessor, ZonedDateTime, ZoneId } from '@js-joda/core';
2
2
  export declare class TimeUtil {
3
3
  static readonly SECONDS_PER_DAY = 86400;
4
4
  /**
@@ -6,8 +6,9 @@ export declare class TimeUtil {
6
6
  * @param date
7
7
  */
8
8
  static instant(date: Date | string): Instant;
9
- static date(instant: Instant): Date;
10
9
  static dateToLocalDate(date: Date): LocalDate;
10
+ static temporalAccessor(date: Date): TemporalAccessor;
11
+ static date(instant: Instant): Date;
11
12
  static localDateToDate(localDate: LocalDate, zone?: ZoneId): Date;
12
13
  static isFullDays(duration: Duration): boolean;
13
14
  static isStartOfDay(date: ZonedDateTime): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "13.5.0",
3
+ "version": "13.5.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",