@js-joda/extra 0.13.1 → 0.13.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/extra - 0.13.
|
|
1
|
+
//! @version @js-joda/extra - 0.13.2
|
|
2
2
|
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
|
|
3
3
|
//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
4
4
|
//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-joda/extra",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "additional date-time classes that complement those in js-joda",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@js-joda/core": "file:../locale/node_modules/@js-joda/core"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "8c0a3b1b555bc09fced243dac13fdf5ef9746dc7"
|
|
55
55
|
}
|
package/src/Interval.js
CHANGED
|
@@ -300,7 +300,7 @@ export class Interval {
|
|
|
300
300
|
/**
|
|
301
301
|
* Checks if this interval overlaps the specified interval.
|
|
302
302
|
*
|
|
303
|
-
* The result is true if the
|
|
303
|
+
* The result is true if the two intervals share some part of the time-line.
|
|
304
304
|
* An empty interval overlaps itself.
|
|
305
305
|
*
|
|
306
306
|
* This is equivalent to `(isConnected(other) && !abuts(other))`.
|
|
@@ -46,6 +46,8 @@ export class DayOfYear extends TemporalAccessor {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export class Interval {
|
|
49
|
+
static ALL: Interval;
|
|
50
|
+
|
|
49
51
|
static of(startInclusive: Instant, endExclusiveInstantOrDuration: Instant | Duration): Interval;
|
|
50
52
|
static parse(text: string): Interval;
|
|
51
53
|
|
|
@@ -116,6 +118,10 @@ export class LocalDateRange {
|
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
export class OffsetDate extends Temporal implements TemporalAdjuster {
|
|
121
|
+
static MIN: OffsetDate;
|
|
122
|
+
static MAX: OffsetDate;
|
|
123
|
+
static FROM: TemporalQuery<OffsetDate>;
|
|
124
|
+
|
|
119
125
|
static from(temporal: TemporalAccessor): OffsetDate;
|
|
120
126
|
static now(zoneIdOrClock?: ZoneId | Clock): OffsetDate;
|
|
121
127
|
static of(year: number, month: number, dayOfMonth: number, offset: ZoneOffset): OffsetDate;
|
|
@@ -183,6 +189,7 @@ export class Quarter extends TemporalAccessor implements TemporalAdjuster {
|
|
|
183
189
|
static Q2: Quarter;
|
|
184
190
|
static Q3: Quarter;
|
|
185
191
|
static Q4: Quarter;
|
|
192
|
+
static FROM: TemporalQuery<Quarter>;
|
|
186
193
|
|
|
187
194
|
static from(temporal: TemporalAccessor): Quarter;
|
|
188
195
|
static of(quarterOfYear: number): Quarter;
|
|
@@ -198,6 +205,7 @@ export class Quarter extends TemporalAccessor implements TemporalAdjuster {
|
|
|
198
205
|
firstMonth(): Month;
|
|
199
206
|
get(field: TemporalField): number;
|
|
200
207
|
getLong(field: TemporalField): number;
|
|
208
|
+
hashCode(): number;
|
|
201
209
|
isSupported(field: TemporalField): boolean;
|
|
202
210
|
length(leapYear: boolean): number;
|
|
203
211
|
minus(months: number): Quarter;
|
|
@@ -222,6 +230,8 @@ export class Temporals {
|
|
|
222
230
|
}
|
|
223
231
|
|
|
224
232
|
export class YearQuarter extends Temporal {
|
|
233
|
+
static FROM: TemporalQuery<YearQuarter>;
|
|
234
|
+
|
|
225
235
|
static from(temporal: TemporalAccessor): YearQuarter;
|
|
226
236
|
static now(zoneIdOrClock?: ZoneId | Clock): YearQuarter;
|
|
227
237
|
static of(year: Year | number, quarter: Quarter | number): YearQuarter;
|
|
@@ -274,6 +284,8 @@ export class YearQuarter extends Temporal {
|
|
|
274
284
|
}
|
|
275
285
|
|
|
276
286
|
export class YearWeek extends Temporal {
|
|
287
|
+
static FROM: TemporalQuery<YearWeek>;
|
|
288
|
+
|
|
277
289
|
static from(temporal: TemporalAccessor): YearWeek;
|
|
278
290
|
static now(zoneIdOrClock?: ZoneId | Clock): YearWeek;
|
|
279
291
|
static of(year: Year | number, week: number): YearWeek;
|