@js-joda/core 5.1.0 → 5.3.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/CHANGELOG.md +3 -1
- package/dist/js-joda.cjs.js +13562 -0
- package/dist/js-joda.cjs.js.map +1 -0
- package/dist/js-joda.esm.js +80 -64
- package/dist/js-joda.esm.js.map +1 -1
- package/dist/js-joda.js +82 -67
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +2 -2
- package/src/Instant.js +42 -1
- package/src/YearMonth.js +1 -0
- package/src/ZoneRegion.js +0 -1
- package/typings/js-joda.d.ts +3 -0
- package/typings/js-joda.flow.js +3 -0
- package/src/license-preamble.js +0 -3
package/dist/js-joda.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/core - 5.1
|
|
1
|
+
//! @version @js-joda/core - 5.3.1
|
|
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)
|
|
@@ -1003,7 +1003,7 @@ var Duration = function (_TemporalAmount) {
|
|
|
1003
1003
|
|
|
1004
1004
|
return Duration;
|
|
1005
1005
|
}(TemporalAmount);
|
|
1006
|
-
function _init() {
|
|
1006
|
+
function _init$n() {
|
|
1007
1007
|
Duration.ZERO = new Duration(0, 0);
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
@@ -1012,7 +1012,7 @@ function _init() {
|
|
|
1012
1012
|
* @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
|
|
1013
1013
|
*/
|
|
1014
1014
|
var YearConstants = function YearConstants() {};
|
|
1015
|
-
function _init$
|
|
1015
|
+
function _init$m() {
|
|
1016
1016
|
YearConstants.MIN_VALUE = -999999;
|
|
1017
1017
|
YearConstants.MAX_VALUE = 999999;
|
|
1018
1018
|
}
|
|
@@ -1083,7 +1083,7 @@ var ChronoUnit = function (_TemporalUnit) {
|
|
|
1083
1083
|
|
|
1084
1084
|
return ChronoUnit;
|
|
1085
1085
|
}(TemporalUnit);
|
|
1086
|
-
function _init$
|
|
1086
|
+
function _init$l() {
|
|
1087
1087
|
ChronoUnit.NANOS = new ChronoUnit('Nanos', Duration.ofNanos(1));
|
|
1088
1088
|
ChronoUnit.MICROS = new ChronoUnit('Micros', Duration.ofNanos(1000));
|
|
1089
1089
|
ChronoUnit.MILLIS = new ChronoUnit('Millis', Duration.ofNanos(1000000));
|
|
@@ -1366,7 +1366,7 @@ var ChronoField = function (_TemporalField) {
|
|
|
1366
1366
|
|
|
1367
1367
|
return ChronoField;
|
|
1368
1368
|
}(TemporalField);
|
|
1369
|
-
function _init$
|
|
1369
|
+
function _init$k() {
|
|
1370
1370
|
ChronoField.NANO_OF_SECOND = new ChronoField('NanoOfSecond', ChronoUnit.NANOS, ChronoUnit.SECONDS, ValueRange.of(0, 999999999));
|
|
1371
1371
|
ChronoField.NANO_OF_DAY = new ChronoField('NanoOfDay', ChronoUnit.NANOS, ChronoUnit.DAYS, ValueRange.of(0, 86400 * 1000000000 - 1));
|
|
1372
1372
|
ChronoField.MICRO_OF_SECOND = new ChronoField('MicroOfSecond', ChronoUnit.MICROS, ChronoUnit.SECONDS, ValueRange.of(0, 999999));
|
|
@@ -1667,7 +1667,7 @@ var DayOfWeek = function (_TemporalAccessor) {
|
|
|
1667
1667
|
return DayOfWeek;
|
|
1668
1668
|
}(TemporalAccessor);
|
|
1669
1669
|
var ENUMS;
|
|
1670
|
-
function _init$
|
|
1670
|
+
function _init$j() {
|
|
1671
1671
|
DayOfWeek.MONDAY = new DayOfWeek(0, 'MONDAY');
|
|
1672
1672
|
DayOfWeek.TUESDAY = new DayOfWeek(1, 'TUESDAY');
|
|
1673
1673
|
DayOfWeek.WEDNESDAY = new DayOfWeek(2, 'WEDNESDAY');
|
|
@@ -1980,7 +1980,7 @@ var Month = function (_TemporalAccessor) {
|
|
|
1980
1980
|
return Month;
|
|
1981
1981
|
}(TemporalAccessor);
|
|
1982
1982
|
var MONTHS;
|
|
1983
|
-
function _init$
|
|
1983
|
+
function _init$i() {
|
|
1984
1984
|
Month.JANUARY = new Month(1, 'JANUARY');
|
|
1985
1985
|
Month.FEBRUARY = new Month(2, 'FEBRUARY');
|
|
1986
1986
|
Month.MARCH = new Month(3, 'MARCH');
|
|
@@ -2368,7 +2368,7 @@ var Period = function (_TemporalAmount) {
|
|
|
2368
2368
|
|
|
2369
2369
|
return Period;
|
|
2370
2370
|
}(TemporalAmount);
|
|
2371
|
-
function _init$
|
|
2371
|
+
function _init$h() {
|
|
2372
2372
|
Period.ofDays(0);
|
|
2373
2373
|
}
|
|
2374
2374
|
|
|
@@ -3152,7 +3152,7 @@ var ZoneOffset = function (_ZoneId) {
|
|
|
3152
3152
|
|
|
3153
3153
|
return ZoneOffset;
|
|
3154
3154
|
}(ZoneId);
|
|
3155
|
-
function _init$
|
|
3155
|
+
function _init$g() {
|
|
3156
3156
|
ZoneOffset.MAX_SECONDS = 18 * LocalTime.SECONDS_PER_HOUR;
|
|
3157
3157
|
ZoneOffset.UTC = ZoneOffset.ofTotalSeconds(0);
|
|
3158
3158
|
ZoneOffset.MIN = ZoneOffset.ofTotalSeconds(-ZoneOffset.MAX_SECONDS);
|
|
@@ -4419,7 +4419,7 @@ var WEEK_OF_WEEK_BASED_YEAR = null;
|
|
|
4419
4419
|
var WEEK_BASED_YEAR = null;
|
|
4420
4420
|
var WEEK_BASED_YEARS = null;
|
|
4421
4421
|
var QUARTER_YEARS = null;
|
|
4422
|
-
function _init$
|
|
4422
|
+
function _init$f() {
|
|
4423
4423
|
DAY_OF_QUARTER = new DAY_OF_QUARTER_FIELD();
|
|
4424
4424
|
QUARTER_OF_YEAR = new QUARTER_OF_YEAR_FIELD();
|
|
4425
4425
|
WEEK_OF_WEEK_BASED_YEAR = new WEEK_OF_WEEK_BASED_YEAR_FIELD();
|
|
@@ -4963,7 +4963,7 @@ var FractionPrinterParser = function () {
|
|
|
4963
4963
|
return FractionPrinterParser;
|
|
4964
4964
|
}();
|
|
4965
4965
|
|
|
4966
|
-
var MAX_WIDTH = 15;
|
|
4966
|
+
var MAX_WIDTH$1 = 15;
|
|
4967
4967
|
var EXCEED_POINTS = [0, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];
|
|
4968
4968
|
var NumberPrinterParser = function () {
|
|
4969
4969
|
function NumberPrinterParser(field, minWidth, maxWidth, signStyle, subsequentWidth) {
|
|
@@ -5033,7 +5033,7 @@ var NumberPrinterParser = function () {
|
|
|
5033
5033
|
if (value >= 0) {
|
|
5034
5034
|
switch (this._signStyle) {
|
|
5035
5035
|
case SignStyle.EXCEEDS_PAD:
|
|
5036
|
-
if (this._minWidth < MAX_WIDTH && value >= EXCEED_POINTS[this._minWidth]) {
|
|
5036
|
+
if (this._minWidth < MAX_WIDTH$1 && value >= EXCEED_POINTS[this._minWidth]) {
|
|
5037
5037
|
buf.append(symbols.positiveSign());
|
|
5038
5038
|
}
|
|
5039
5039
|
|
|
@@ -5124,7 +5124,7 @@ var NumberPrinterParser = function () {
|
|
|
5124
5124
|
break;
|
|
5125
5125
|
}
|
|
5126
5126
|
|
|
5127
|
-
if (pos - position > MAX_WIDTH) {
|
|
5127
|
+
if (pos - position > MAX_WIDTH$1) {
|
|
5128
5128
|
throw new ArithmeticException('number text exceeds length');
|
|
5129
5129
|
} else {
|
|
5130
5130
|
total = total * 10 + digit;
|
|
@@ -5175,7 +5175,7 @@ var NumberPrinterParser = function () {
|
|
|
5175
5175
|
};
|
|
5176
5176
|
|
|
5177
5177
|
_proto.toString = function toString() {
|
|
5178
|
-
if (this._minWidth === 1 && this._maxWidth === MAX_WIDTH && this._signStyle === SignStyle.NORMAL) {
|
|
5178
|
+
if (this._minWidth === 1 && this._maxWidth === MAX_WIDTH$1 && this._signStyle === SignStyle.NORMAL) {
|
|
5179
5179
|
return "Value(" + this._field + ")";
|
|
5180
5180
|
}
|
|
5181
5181
|
|
|
@@ -5871,7 +5871,7 @@ var zoneIdTree = new ZoneIdTree([]);
|
|
|
5871
5871
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
5872
5872
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
5873
5873
|
*/
|
|
5874
|
-
var MAX_WIDTH
|
|
5874
|
+
var MAX_WIDTH = 15;
|
|
5875
5875
|
var DateTimeFormatterBuilder = function () {
|
|
5876
5876
|
function DateTimeFormatterBuilder() {
|
|
5877
5877
|
this._active = this;
|
|
@@ -5931,7 +5931,7 @@ var DateTimeFormatterBuilder = function () {
|
|
|
5931
5931
|
_proto._appendValue1 = function _appendValue1(field) {
|
|
5932
5932
|
requireNonNull(field);
|
|
5933
5933
|
|
|
5934
|
-
this._appendValuePrinterParser(new NumberPrinterParser(field, 1, MAX_WIDTH
|
|
5934
|
+
this._appendValuePrinterParser(new NumberPrinterParser(field, 1, MAX_WIDTH, SignStyle.NORMAL));
|
|
5935
5935
|
|
|
5936
5936
|
return this;
|
|
5937
5937
|
};
|
|
@@ -5939,8 +5939,8 @@ var DateTimeFormatterBuilder = function () {
|
|
|
5939
5939
|
_proto._appendValue2 = function _appendValue2(field, width) {
|
|
5940
5940
|
requireNonNull(field);
|
|
5941
5941
|
|
|
5942
|
-
if (width < 1 || width > MAX_WIDTH
|
|
5943
|
-
throw new IllegalArgumentException("The width must be from 1 to " + MAX_WIDTH
|
|
5942
|
+
if (width < 1 || width > MAX_WIDTH) {
|
|
5943
|
+
throw new IllegalArgumentException("The width must be from 1 to " + MAX_WIDTH + " inclusive but was " + width);
|
|
5944
5944
|
}
|
|
5945
5945
|
|
|
5946
5946
|
var pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE);
|
|
@@ -5958,12 +5958,12 @@ var DateTimeFormatterBuilder = function () {
|
|
|
5958
5958
|
return this._appendValue2(field, maxWidth);
|
|
5959
5959
|
}
|
|
5960
5960
|
|
|
5961
|
-
if (minWidth < 1 || minWidth > MAX_WIDTH
|
|
5962
|
-
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH
|
|
5961
|
+
if (minWidth < 1 || minWidth > MAX_WIDTH) {
|
|
5962
|
+
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH + " inclusive but was " + minWidth);
|
|
5963
5963
|
}
|
|
5964
5964
|
|
|
5965
|
-
if (maxWidth < 1 || maxWidth > MAX_WIDTH
|
|
5966
|
-
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH
|
|
5965
|
+
if (maxWidth < 1 || maxWidth > MAX_WIDTH) {
|
|
5966
|
+
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH + " inclusive but was " + maxWidth);
|
|
5967
5967
|
}
|
|
5968
5968
|
|
|
5969
5969
|
if (maxWidth < minWidth) {
|
|
@@ -6271,9 +6271,9 @@ var DateTimeFormatterBuilder = function () {
|
|
|
6271
6271
|
if (count === 2) {
|
|
6272
6272
|
this.appendValueReduced(field, 2, 2, ReducedPrinterParser.BASE_DATE);
|
|
6273
6273
|
} else if (count < 4) {
|
|
6274
|
-
this.appendValue(field, count, MAX_WIDTH
|
|
6274
|
+
this.appendValue(field, count, MAX_WIDTH, SignStyle.NORMAL);
|
|
6275
6275
|
} else {
|
|
6276
|
-
this.appendValue(field, count, MAX_WIDTH
|
|
6276
|
+
this.appendValue(field, count, MAX_WIDTH, SignStyle.EXCEEDS_PAD);
|
|
6277
6277
|
}
|
|
6278
6278
|
|
|
6279
6279
|
break;
|
|
@@ -6741,7 +6741,7 @@ var InstantPrinterParser = function () {
|
|
|
6741
6741
|
return InstantPrinterParser;
|
|
6742
6742
|
}();
|
|
6743
6743
|
|
|
6744
|
-
function _init$
|
|
6744
|
+
function _init$e() {
|
|
6745
6745
|
ReducedPrinterParser.BASE_DATE = LocalDate.of(2000, 1, 1);
|
|
6746
6746
|
DateTimeFormatterBuilder.CompositePrinterParser = CompositePrinterParser;
|
|
6747
6747
|
DateTimeFormatterBuilder.PadPrinterParserDecorator = PadPrinterParserDecorator;
|
|
@@ -6997,7 +6997,7 @@ var DateTimeFormatter = function () {
|
|
|
6997
6997
|
|
|
6998
6998
|
return DateTimeFormatter;
|
|
6999
6999
|
}();
|
|
7000
|
-
function _init$
|
|
7000
|
+
function _init$d() {
|
|
7001
7001
|
DateTimeFormatter.ISO_LOCAL_DATE = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).appendLiteral('-').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter(ResolverStyle.STRICT).withChronology(IsoChronology.INSTANCE);
|
|
7002
7002
|
DateTimeFormatter.ISO_LOCAL_TIME = new DateTimeFormatterBuilder().appendValue(ChronoField.HOUR_OF_DAY, 2).appendLiteral(':').appendValue(ChronoField.MINUTE_OF_HOUR, 2).optionalStart().appendLiteral(':').appendValue(ChronoField.SECOND_OF_MINUTE, 2).optionalStart().appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, true).toFormatter(ResolverStyle.STRICT);
|
|
7003
7003
|
DateTimeFormatter.ISO_LOCAL_DATE_TIME = new DateTimeFormatterBuilder().parseCaseInsensitive().append(DateTimeFormatter.ISO_LOCAL_DATE).appendLiteral('T').append(DateTimeFormatter.ISO_LOCAL_TIME).toFormatter(ResolverStyle.STRICT).withChronology(IsoChronology.INSTANCE);
|
|
@@ -7105,7 +7105,7 @@ var MonthDay = function (_TemporalAccessor) {
|
|
|
7105
7105
|
};
|
|
7106
7106
|
|
|
7107
7107
|
MonthDay.parseString = function parseString(text) {
|
|
7108
|
-
return MonthDay.parseStringFormatter(text, PARSER);
|
|
7108
|
+
return MonthDay.parseStringFormatter(text, PARSER$2);
|
|
7109
7109
|
};
|
|
7110
7110
|
|
|
7111
7111
|
MonthDay.parseStringFormatter = function parseStringFormatter(text, formatter) {
|
|
@@ -7279,9 +7279,9 @@ var MonthDay = function (_TemporalAccessor) {
|
|
|
7279
7279
|
|
|
7280
7280
|
return MonthDay;
|
|
7281
7281
|
}(TemporalAccessor);
|
|
7282
|
-
var PARSER;
|
|
7283
|
-
function _init$
|
|
7284
|
-
PARSER = new DateTimeFormatterBuilder().appendLiteral('--').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter();
|
|
7282
|
+
var PARSER$2;
|
|
7283
|
+
function _init$c() {
|
|
7284
|
+
PARSER$2 = new DateTimeFormatterBuilder().appendLiteral('--').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter();
|
|
7285
7285
|
MonthDay.FROM = createTemporalQuery('MonthDay.FROM', function (temporal) {
|
|
7286
7286
|
return MonthDay.from(temporal);
|
|
7287
7287
|
});
|
|
@@ -7642,6 +7642,7 @@ var YearMonth = function (_Temporal) {
|
|
|
7642
7642
|
};
|
|
7643
7643
|
|
|
7644
7644
|
_proto.atDay = function atDay(dayOfMonth) {
|
|
7645
|
+
requireNonNull(dayOfMonth, 'dayOfMonth');
|
|
7645
7646
|
return LocalDate.of(this._year, this._month, dayOfMonth);
|
|
7646
7647
|
};
|
|
7647
7648
|
|
|
@@ -7698,7 +7699,7 @@ var YearMonth = function (_Temporal) {
|
|
|
7698
7699
|
return YearMonth;
|
|
7699
7700
|
}(Temporal);
|
|
7700
7701
|
var PARSER$1;
|
|
7701
|
-
function _init$
|
|
7702
|
+
function _init$b() {
|
|
7702
7703
|
PARSER$1 = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).appendLiteral('-').appendValue(ChronoField.MONTH_OF_YEAR, 2).toFormatter();
|
|
7703
7704
|
YearMonth.FROM = createTemporalQuery('YearMonth.FROM', function (temporal) {
|
|
7704
7705
|
return YearMonth.from(temporal);
|
|
@@ -7784,12 +7785,12 @@ var Year = function (_Temporal) {
|
|
|
7784
7785
|
|
|
7785
7786
|
Year.parseText = function parseText(text) {
|
|
7786
7787
|
requireNonNull(text, 'text');
|
|
7787
|
-
return Year.parse(text, PARSER
|
|
7788
|
+
return Year.parse(text, PARSER);
|
|
7788
7789
|
};
|
|
7789
7790
|
|
|
7790
7791
|
Year.parseTextFormatter = function parseTextFormatter(text, formatter) {
|
|
7791
7792
|
if (formatter === void 0) {
|
|
7792
|
-
formatter = PARSER
|
|
7793
|
+
formatter = PARSER;
|
|
7793
7794
|
}
|
|
7794
7795
|
|
|
7795
7796
|
requireNonNull(text, 'text');
|
|
@@ -8062,11 +8063,11 @@ var Year = function (_Temporal) {
|
|
|
8062
8063
|
|
|
8063
8064
|
return Year;
|
|
8064
8065
|
}(Temporal);
|
|
8065
|
-
var PARSER
|
|
8066
|
-
function _init$
|
|
8066
|
+
var PARSER;
|
|
8067
|
+
function _init$a() {
|
|
8067
8068
|
Year.MIN_VALUE = YearConstants.MIN_VALUE;
|
|
8068
8069
|
Year.MAX_VALUE = YearConstants.MAX_VALUE;
|
|
8069
|
-
PARSER
|
|
8070
|
+
PARSER = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).toFormatter();
|
|
8070
8071
|
Year.FROM = createTemporalQuery('Year.FROM', function (temporal) {
|
|
8071
8072
|
return Year.from(temporal);
|
|
8072
8073
|
});
|
|
@@ -8440,7 +8441,7 @@ var IsoChronology = function (_Enum) {
|
|
|
8440
8441
|
|
|
8441
8442
|
return IsoChronology;
|
|
8442
8443
|
}(Enum);
|
|
8443
|
-
function _init$
|
|
8444
|
+
function _init$9() {
|
|
8444
8445
|
IsoChronology.INSTANCE = new IsoChronology('IsoChronology');
|
|
8445
8446
|
}
|
|
8446
8447
|
|
|
@@ -8861,7 +8862,7 @@ var OffsetTime = function (_Temporal) {
|
|
|
8861
8862
|
|
|
8862
8863
|
return OffsetTime;
|
|
8863
8864
|
}(Temporal);
|
|
8864
|
-
function _init$
|
|
8865
|
+
function _init$8() {
|
|
8865
8866
|
OffsetTime.MIN = OffsetTime.ofNumbers(0, 0, 0, 0, ZoneOffset.MAX);
|
|
8866
8867
|
OffsetTime.MAX = OffsetTime.ofNumbers(23, 59, 59, 999999999, ZoneOffset.MIN);
|
|
8867
8868
|
OffsetTime.FROM = createTemporalQuery('OffsetTime.FROM', function (temporal) {
|
|
@@ -9547,7 +9548,7 @@ var ZonedDateTime = function (_ChronoZonedDateTime) {
|
|
|
9547
9548
|
|
|
9548
9549
|
return ZonedDateTime;
|
|
9549
9550
|
}(ChronoZonedDateTime);
|
|
9550
|
-
function _init$
|
|
9551
|
+
function _init$7() {
|
|
9551
9552
|
ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
|
|
9552
9553
|
return ZonedDateTime.from(temporal);
|
|
9553
9554
|
});
|
|
@@ -10097,7 +10098,7 @@ var OffsetDateTime = function (_Temporal) {
|
|
|
10097
10098
|
|
|
10098
10099
|
return OffsetDateTime;
|
|
10099
10100
|
}(Temporal);
|
|
10100
|
-
function _init$
|
|
10101
|
+
function _init$6() {
|
|
10101
10102
|
OffsetDateTime.MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX);
|
|
10102
10103
|
OffsetDateTime.MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN);
|
|
10103
10104
|
OffsetDateTime.FROM = createTemporalQuery('OffsetDateTime.FROM', function (temporal) {
|
|
@@ -10896,7 +10897,7 @@ var LocalDate = function (_ChronoLocalDate) {
|
|
|
10896
10897
|
|
|
10897
10898
|
return LocalDate;
|
|
10898
10899
|
}(ChronoLocalDate);
|
|
10899
|
-
function _init$
|
|
10900
|
+
function _init$5() {
|
|
10900
10901
|
LocalDate.MIN = LocalDate.of(YearConstants.MIN_VALUE, 1, 1);
|
|
10901
10902
|
LocalDate.MAX = LocalDate.of(YearConstants.MAX_VALUE, 12, 31);
|
|
10902
10903
|
LocalDate.EPOCH_0 = LocalDate.ofEpochDay(0);
|
|
@@ -11535,7 +11536,7 @@ var LocalDateTime = function (_ChronoLocalDateTime) {
|
|
|
11535
11536
|
|
|
11536
11537
|
return LocalDateTime;
|
|
11537
11538
|
}(ChronoLocalDateTime);
|
|
11538
|
-
function _init$
|
|
11539
|
+
function _init$4() {
|
|
11539
11540
|
LocalDateTime.MIN = LocalDateTime.of(LocalDate.MIN, LocalTime.MIN);
|
|
11540
11541
|
LocalDateTime.MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX);
|
|
11541
11542
|
LocalDateTime.FROM = createTemporalQuery('LocalDateTime.FROM', function (temporal) {
|
|
@@ -12221,7 +12222,7 @@ var LocalTime = function (_Temporal) {
|
|
|
12221
12222
|
|
|
12222
12223
|
return LocalTime;
|
|
12223
12224
|
}(Temporal);
|
|
12224
|
-
function _init$
|
|
12225
|
+
function _init$3() {
|
|
12225
12226
|
LocalTime.HOURS = [];
|
|
12226
12227
|
|
|
12227
12228
|
for (var hour = 0; hour < 24; hour++) {
|
|
@@ -12277,6 +12278,12 @@ var Instant = function (_Temporal) {
|
|
|
12277
12278
|
return Instant._create(secs, mos * 1000000);
|
|
12278
12279
|
};
|
|
12279
12280
|
|
|
12281
|
+
Instant.ofEpochMicro = function ofEpochMicro(epochMicro) {
|
|
12282
|
+
var secs = MathUtil.floorDiv(epochMicro, 1000000);
|
|
12283
|
+
var mos = MathUtil.floorMod(epochMicro, 1000000);
|
|
12284
|
+
return Instant._create(secs, mos * 1000);
|
|
12285
|
+
};
|
|
12286
|
+
|
|
12280
12287
|
Instant.from = function from(temporal) {
|
|
12281
12288
|
try {
|
|
12282
12289
|
var instantSecs = temporal.getLong(ChronoField.INSTANT_SECONDS);
|
|
@@ -12442,7 +12449,7 @@ var Instant = function (_Temporal) {
|
|
|
12442
12449
|
return this.plusNanos(amountToAdd);
|
|
12443
12450
|
|
|
12444
12451
|
case ChronoUnit.MICROS:
|
|
12445
|
-
return this.
|
|
12452
|
+
return this.plusMicros(amountToAdd);
|
|
12446
12453
|
|
|
12447
12454
|
case ChronoUnit.MILLIS:
|
|
12448
12455
|
return this.plusMillis(amountToAdd);
|
|
@@ -12481,6 +12488,10 @@ var Instant = function (_Temporal) {
|
|
|
12481
12488
|
return this._plus(0, nanosToAdd);
|
|
12482
12489
|
};
|
|
12483
12490
|
|
|
12491
|
+
_proto.plusMicros = function plusMicros(microsToAdd) {
|
|
12492
|
+
return this._plus(MathUtil.intDiv(microsToAdd, 1000000), MathUtil.intMod(microsToAdd, 1000000) * 1000);
|
|
12493
|
+
};
|
|
12494
|
+
|
|
12484
12495
|
_proto._plus = function _plus(secondsToAdd, nanosToAdd) {
|
|
12485
12496
|
if (secondsToAdd === 0 && nanosToAdd === 0) {
|
|
12486
12497
|
return this;
|
|
@@ -12508,6 +12519,10 @@ var Instant = function (_Temporal) {
|
|
|
12508
12519
|
return this.plusNanos(-1 * nanosToSubtract);
|
|
12509
12520
|
};
|
|
12510
12521
|
|
|
12522
|
+
_proto.minusMicros = function minusMicros(microsToSubtract) {
|
|
12523
|
+
return this.plusMicros(-1 * microsToSubtract);
|
|
12524
|
+
};
|
|
12525
|
+
|
|
12511
12526
|
_proto.query = function query(_query) {
|
|
12512
12527
|
requireNonNull(_query, 'query');
|
|
12513
12528
|
|
|
@@ -12649,7 +12664,7 @@ var Instant = function (_Temporal) {
|
|
|
12649
12664
|
|
|
12650
12665
|
return Instant;
|
|
12651
12666
|
}(Temporal);
|
|
12652
|
-
function _init$
|
|
12667
|
+
function _init$2() {
|
|
12653
12668
|
Instant.MIN_SECONDS = -31619119219200;
|
|
12654
12669
|
Instant.MAX_SECONDS = 31494816403199;
|
|
12655
12670
|
Instant.EPOCH = new Instant(0, 0);
|
|
@@ -12971,7 +12986,7 @@ var ZoneOffsetTransition = function () {
|
|
|
12971
12986
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
12972
12987
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
12973
12988
|
*/
|
|
12974
|
-
function _init$
|
|
12989
|
+
function _init$1() {
|
|
12975
12990
|
TemporalQueries.ZONE_ID = createTemporalQuery('ZONE_ID', function (temporal) {
|
|
12976
12991
|
return temporal.query(TemporalQueries.ZONE_ID);
|
|
12977
12992
|
});
|
|
@@ -13225,7 +13240,7 @@ var ZoneIdFactory = function () {
|
|
|
13225
13240
|
return ZoneIdFactory;
|
|
13226
13241
|
}();
|
|
13227
13242
|
var SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
|
|
13228
|
-
function _init
|
|
13243
|
+
function _init() {
|
|
13229
13244
|
SYSTEM_DEFAULT_ZONE_ID_INSTANCE = new SystemDefaultZoneId();
|
|
13230
13245
|
ZoneId.systemDefault = ZoneIdFactory.systemDefault;
|
|
13231
13246
|
ZoneId.getAvailableZoneIds = ZoneIdFactory.getAvailableZoneIds;
|
|
@@ -13249,30 +13264,30 @@ function init() {
|
|
|
13249
13264
|
}
|
|
13250
13265
|
|
|
13251
13266
|
isInit = true;
|
|
13252
|
-
_init$1();
|
|
13253
|
-
_init();
|
|
13254
|
-
_init$2();
|
|
13255
|
-
_init$3();
|
|
13256
|
-
_init$k();
|
|
13257
|
-
_init$8();
|
|
13258
13267
|
_init$m();
|
|
13259
|
-
_init$
|
|
13268
|
+
_init$n();
|
|
13260
13269
|
_init$l();
|
|
13261
|
-
_init$
|
|
13270
|
+
_init$k();
|
|
13271
|
+
_init$3();
|
|
13272
|
+
_init$f();
|
|
13273
|
+
_init$1();
|
|
13262
13274
|
_init$j();
|
|
13263
|
-
_init$
|
|
13275
|
+
_init$2();
|
|
13264
13276
|
_init$5();
|
|
13265
|
-
_init$
|
|
13277
|
+
_init$4();
|
|
13278
|
+
_init$a();
|
|
13279
|
+
_init$i();
|
|
13266
13280
|
_init$b();
|
|
13267
|
-
_init$
|
|
13268
|
-
_init$
|
|
13281
|
+
_init$c();
|
|
13282
|
+
_init$h();
|
|
13269
13283
|
_init$g();
|
|
13270
|
-
_init$
|
|
13271
|
-
_init
|
|
13272
|
-
_init$a();
|
|
13284
|
+
_init$7();
|
|
13285
|
+
_init();
|
|
13273
13286
|
_init$9();
|
|
13274
|
-
_init$
|
|
13275
|
-
_init$
|
|
13287
|
+
_init$d();
|
|
13288
|
+
_init$e();
|
|
13289
|
+
_init$6();
|
|
13290
|
+
_init$8();
|
|
13276
13291
|
}
|
|
13277
13292
|
|
|
13278
13293
|
init();
|
|
@@ -13485,3 +13500,4 @@ var use = bindUse(jsJodaExports);
|
|
|
13485
13500
|
jsJodaExports.use = use;
|
|
13486
13501
|
|
|
13487
13502
|
export { ArithmeticException, ChronoField, ChronoLocalDate, ChronoLocalDateTime, ChronoUnit, ChronoZonedDateTime, Clock, DateTimeException, DateTimeFormatter, DateTimeFormatterBuilder, DateTimeParseException, DayOfWeek, DecimalStyle, Duration, IllegalArgumentException, IllegalStateException, Instant, IsoChronology, IsoFields, LocalDate, LocalDateTime, LocalTime, Month, MonthDay, NullPointerException, OffsetDateTime, OffsetTime, Period, ResolverStyle, SignStyle, Temporal, TemporalAccessor, TemporalAdjuster, TemporalAdjusters, TemporalAmount, TemporalField, TemporalQueries, TemporalQuery, TemporalUnit, TextStyle, UnsupportedTemporalTypeException, ValueRange, Year, YearConstants, YearMonth, ZoneId, ZoneOffset, ZoneOffsetTransition, ZoneRegion, ZoneRules, ZoneRulesProvider, ZonedDateTime, _, convert, nativeJs, use };
|
|
13503
|
+
//# sourceMappingURL=js-joda.esm.js.map
|