@js-joda/core 5.0.0 → 5.3.0
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 +7 -1
- package/dist/js-joda.cjs.js +13561 -0
- package/dist/js-joda.cjs.js.map +1 -0
- package/dist/js-joda.esm.js +79 -64
- package/dist/js-joda.esm.js.map +1 -0
- package/dist/js-joda.js +81 -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/typings/js-joda.d.ts +3 -1
- 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
|
+
//! @version @js-joda/core - 5.3.0
|
|
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
|
});
|
|
@@ -7698,7 +7698,7 @@ var YearMonth = function (_Temporal) {
|
|
|
7698
7698
|
return YearMonth;
|
|
7699
7699
|
}(Temporal);
|
|
7700
7700
|
var PARSER$1;
|
|
7701
|
-
function _init$
|
|
7701
|
+
function _init$b() {
|
|
7702
7702
|
PARSER$1 = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).appendLiteral('-').appendValue(ChronoField.MONTH_OF_YEAR, 2).toFormatter();
|
|
7703
7703
|
YearMonth.FROM = createTemporalQuery('YearMonth.FROM', function (temporal) {
|
|
7704
7704
|
return YearMonth.from(temporal);
|
|
@@ -7784,12 +7784,12 @@ var Year = function (_Temporal) {
|
|
|
7784
7784
|
|
|
7785
7785
|
Year.parseText = function parseText(text) {
|
|
7786
7786
|
requireNonNull(text, 'text');
|
|
7787
|
-
return Year.parse(text, PARSER
|
|
7787
|
+
return Year.parse(text, PARSER);
|
|
7788
7788
|
};
|
|
7789
7789
|
|
|
7790
7790
|
Year.parseTextFormatter = function parseTextFormatter(text, formatter) {
|
|
7791
7791
|
if (formatter === void 0) {
|
|
7792
|
-
formatter = PARSER
|
|
7792
|
+
formatter = PARSER;
|
|
7793
7793
|
}
|
|
7794
7794
|
|
|
7795
7795
|
requireNonNull(text, 'text');
|
|
@@ -8062,11 +8062,11 @@ var Year = function (_Temporal) {
|
|
|
8062
8062
|
|
|
8063
8063
|
return Year;
|
|
8064
8064
|
}(Temporal);
|
|
8065
|
-
var PARSER
|
|
8066
|
-
function _init$
|
|
8065
|
+
var PARSER;
|
|
8066
|
+
function _init$a() {
|
|
8067
8067
|
Year.MIN_VALUE = YearConstants.MIN_VALUE;
|
|
8068
8068
|
Year.MAX_VALUE = YearConstants.MAX_VALUE;
|
|
8069
|
-
PARSER
|
|
8069
|
+
PARSER = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).toFormatter();
|
|
8070
8070
|
Year.FROM = createTemporalQuery('Year.FROM', function (temporal) {
|
|
8071
8071
|
return Year.from(temporal);
|
|
8072
8072
|
});
|
|
@@ -8440,7 +8440,7 @@ var IsoChronology = function (_Enum) {
|
|
|
8440
8440
|
|
|
8441
8441
|
return IsoChronology;
|
|
8442
8442
|
}(Enum);
|
|
8443
|
-
function _init$
|
|
8443
|
+
function _init$9() {
|
|
8444
8444
|
IsoChronology.INSTANCE = new IsoChronology('IsoChronology');
|
|
8445
8445
|
}
|
|
8446
8446
|
|
|
@@ -8861,7 +8861,7 @@ var OffsetTime = function (_Temporal) {
|
|
|
8861
8861
|
|
|
8862
8862
|
return OffsetTime;
|
|
8863
8863
|
}(Temporal);
|
|
8864
|
-
function _init$
|
|
8864
|
+
function _init$8() {
|
|
8865
8865
|
OffsetTime.MIN = OffsetTime.ofNumbers(0, 0, 0, 0, ZoneOffset.MAX);
|
|
8866
8866
|
OffsetTime.MAX = OffsetTime.ofNumbers(23, 59, 59, 999999999, ZoneOffset.MIN);
|
|
8867
8867
|
OffsetTime.FROM = createTemporalQuery('OffsetTime.FROM', function (temporal) {
|
|
@@ -9547,7 +9547,7 @@ var ZonedDateTime = function (_ChronoZonedDateTime) {
|
|
|
9547
9547
|
|
|
9548
9548
|
return ZonedDateTime;
|
|
9549
9549
|
}(ChronoZonedDateTime);
|
|
9550
|
-
function _init$
|
|
9550
|
+
function _init$7() {
|
|
9551
9551
|
ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
|
|
9552
9552
|
return ZonedDateTime.from(temporal);
|
|
9553
9553
|
});
|
|
@@ -10097,7 +10097,7 @@ var OffsetDateTime = function (_Temporal) {
|
|
|
10097
10097
|
|
|
10098
10098
|
return OffsetDateTime;
|
|
10099
10099
|
}(Temporal);
|
|
10100
|
-
function _init$
|
|
10100
|
+
function _init$6() {
|
|
10101
10101
|
OffsetDateTime.MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX);
|
|
10102
10102
|
OffsetDateTime.MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN);
|
|
10103
10103
|
OffsetDateTime.FROM = createTemporalQuery('OffsetDateTime.FROM', function (temporal) {
|
|
@@ -10896,7 +10896,7 @@ var LocalDate = function (_ChronoLocalDate) {
|
|
|
10896
10896
|
|
|
10897
10897
|
return LocalDate;
|
|
10898
10898
|
}(ChronoLocalDate);
|
|
10899
|
-
function _init$
|
|
10899
|
+
function _init$5() {
|
|
10900
10900
|
LocalDate.MIN = LocalDate.of(YearConstants.MIN_VALUE, 1, 1);
|
|
10901
10901
|
LocalDate.MAX = LocalDate.of(YearConstants.MAX_VALUE, 12, 31);
|
|
10902
10902
|
LocalDate.EPOCH_0 = LocalDate.ofEpochDay(0);
|
|
@@ -11535,7 +11535,7 @@ var LocalDateTime = function (_ChronoLocalDateTime) {
|
|
|
11535
11535
|
|
|
11536
11536
|
return LocalDateTime;
|
|
11537
11537
|
}(ChronoLocalDateTime);
|
|
11538
|
-
function _init$
|
|
11538
|
+
function _init$4() {
|
|
11539
11539
|
LocalDateTime.MIN = LocalDateTime.of(LocalDate.MIN, LocalTime.MIN);
|
|
11540
11540
|
LocalDateTime.MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX);
|
|
11541
11541
|
LocalDateTime.FROM = createTemporalQuery('LocalDateTime.FROM', function (temporal) {
|
|
@@ -12221,7 +12221,7 @@ var LocalTime = function (_Temporal) {
|
|
|
12221
12221
|
|
|
12222
12222
|
return LocalTime;
|
|
12223
12223
|
}(Temporal);
|
|
12224
|
-
function _init$
|
|
12224
|
+
function _init$3() {
|
|
12225
12225
|
LocalTime.HOURS = [];
|
|
12226
12226
|
|
|
12227
12227
|
for (var hour = 0; hour < 24; hour++) {
|
|
@@ -12277,6 +12277,12 @@ var Instant = function (_Temporal) {
|
|
|
12277
12277
|
return Instant._create(secs, mos * 1000000);
|
|
12278
12278
|
};
|
|
12279
12279
|
|
|
12280
|
+
Instant.ofEpochMicro = function ofEpochMicro(epochMicro) {
|
|
12281
|
+
var secs = MathUtil.floorDiv(epochMicro, 1000000);
|
|
12282
|
+
var mos = MathUtil.floorMod(epochMicro, 1000000);
|
|
12283
|
+
return Instant._create(secs, mos * 1000);
|
|
12284
|
+
};
|
|
12285
|
+
|
|
12280
12286
|
Instant.from = function from(temporal) {
|
|
12281
12287
|
try {
|
|
12282
12288
|
var instantSecs = temporal.getLong(ChronoField.INSTANT_SECONDS);
|
|
@@ -12442,7 +12448,7 @@ var Instant = function (_Temporal) {
|
|
|
12442
12448
|
return this.plusNanos(amountToAdd);
|
|
12443
12449
|
|
|
12444
12450
|
case ChronoUnit.MICROS:
|
|
12445
|
-
return this.
|
|
12451
|
+
return this.plusMicros(amountToAdd);
|
|
12446
12452
|
|
|
12447
12453
|
case ChronoUnit.MILLIS:
|
|
12448
12454
|
return this.plusMillis(amountToAdd);
|
|
@@ -12481,6 +12487,10 @@ var Instant = function (_Temporal) {
|
|
|
12481
12487
|
return this._plus(0, nanosToAdd);
|
|
12482
12488
|
};
|
|
12483
12489
|
|
|
12490
|
+
_proto.plusMicros = function plusMicros(microsToAdd) {
|
|
12491
|
+
return this._plus(MathUtil.intDiv(microsToAdd, 1000000), MathUtil.intMod(microsToAdd, 1000000) * 1000);
|
|
12492
|
+
};
|
|
12493
|
+
|
|
12484
12494
|
_proto._plus = function _plus(secondsToAdd, nanosToAdd) {
|
|
12485
12495
|
if (secondsToAdd === 0 && nanosToAdd === 0) {
|
|
12486
12496
|
return this;
|
|
@@ -12508,6 +12518,10 @@ var Instant = function (_Temporal) {
|
|
|
12508
12518
|
return this.plusNanos(-1 * nanosToSubtract);
|
|
12509
12519
|
};
|
|
12510
12520
|
|
|
12521
|
+
_proto.minusMicros = function minusMicros(microsToSubtract) {
|
|
12522
|
+
return this.plusMicros(-1 * microsToSubtract);
|
|
12523
|
+
};
|
|
12524
|
+
|
|
12511
12525
|
_proto.query = function query(_query) {
|
|
12512
12526
|
requireNonNull(_query, 'query');
|
|
12513
12527
|
|
|
@@ -12649,7 +12663,7 @@ var Instant = function (_Temporal) {
|
|
|
12649
12663
|
|
|
12650
12664
|
return Instant;
|
|
12651
12665
|
}(Temporal);
|
|
12652
|
-
function _init$
|
|
12666
|
+
function _init$2() {
|
|
12653
12667
|
Instant.MIN_SECONDS = -31619119219200;
|
|
12654
12668
|
Instant.MAX_SECONDS = 31494816403199;
|
|
12655
12669
|
Instant.EPOCH = new Instant(0, 0);
|
|
@@ -12971,7 +12985,7 @@ var ZoneOffsetTransition = function () {
|
|
|
12971
12985
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
12972
12986
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
12973
12987
|
*/
|
|
12974
|
-
function _init$
|
|
12988
|
+
function _init$1() {
|
|
12975
12989
|
TemporalQueries.ZONE_ID = createTemporalQuery('ZONE_ID', function (temporal) {
|
|
12976
12990
|
return temporal.query(TemporalQueries.ZONE_ID);
|
|
12977
12991
|
});
|
|
@@ -13225,7 +13239,7 @@ var ZoneIdFactory = function () {
|
|
|
13225
13239
|
return ZoneIdFactory;
|
|
13226
13240
|
}();
|
|
13227
13241
|
var SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
|
|
13228
|
-
function _init
|
|
13242
|
+
function _init() {
|
|
13229
13243
|
SYSTEM_DEFAULT_ZONE_ID_INSTANCE = new SystemDefaultZoneId();
|
|
13230
13244
|
ZoneId.systemDefault = ZoneIdFactory.systemDefault;
|
|
13231
13245
|
ZoneId.getAvailableZoneIds = ZoneIdFactory.getAvailableZoneIds;
|
|
@@ -13249,30 +13263,30 @@ function init() {
|
|
|
13249
13263
|
}
|
|
13250
13264
|
|
|
13251
13265
|
isInit = true;
|
|
13252
|
-
_init$1();
|
|
13253
|
-
_init();
|
|
13254
|
-
_init$2();
|
|
13255
|
-
_init$3();
|
|
13256
|
-
_init$k();
|
|
13257
|
-
_init$8();
|
|
13258
13266
|
_init$m();
|
|
13259
|
-
_init$
|
|
13267
|
+
_init$n();
|
|
13260
13268
|
_init$l();
|
|
13261
|
-
_init$
|
|
13269
|
+
_init$k();
|
|
13270
|
+
_init$3();
|
|
13271
|
+
_init$f();
|
|
13272
|
+
_init$1();
|
|
13262
13273
|
_init$j();
|
|
13263
|
-
_init$
|
|
13274
|
+
_init$2();
|
|
13264
13275
|
_init$5();
|
|
13265
|
-
_init$
|
|
13276
|
+
_init$4();
|
|
13277
|
+
_init$a();
|
|
13278
|
+
_init$i();
|
|
13266
13279
|
_init$b();
|
|
13267
|
-
_init$
|
|
13268
|
-
_init$
|
|
13280
|
+
_init$c();
|
|
13281
|
+
_init$h();
|
|
13269
13282
|
_init$g();
|
|
13270
|
-
_init$
|
|
13271
|
-
_init
|
|
13272
|
-
_init$a();
|
|
13283
|
+
_init$7();
|
|
13284
|
+
_init();
|
|
13273
13285
|
_init$9();
|
|
13274
|
-
_init$
|
|
13275
|
-
_init$
|
|
13286
|
+
_init$d();
|
|
13287
|
+
_init$e();
|
|
13288
|
+
_init$6();
|
|
13289
|
+
_init$8();
|
|
13276
13290
|
}
|
|
13277
13291
|
|
|
13278
13292
|
init();
|
|
@@ -13485,3 +13499,4 @@ var use = bindUse(jsJodaExports);
|
|
|
13485
13499
|
jsJodaExports.use = use;
|
|
13486
13500
|
|
|
13487
13501
|
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 };
|
|
13502
|
+
//# sourceMappingURL=js-joda.esm.js.map
|