@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.
- package/esm2020/lib/common/time/interval.mjs +10 -10
- package/esm2020/lib/common/time/time-util.mjs +9 -6
- package/fesm2015/elderbyte-ngx-starter.mjs +109 -105
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +109 -105
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/time/interval.d.ts +3 -3
- package/lib/common/time/time-util.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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(
|
|
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;
|