@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.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)
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
9
|
-
(global = global || self, factory(global.JSJoda = {}));
|
|
10
|
-
}(this, (function (exports) { 'use strict';
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JSJoda = {}));
|
|
10
|
+
})(this, (function (exports) { 'use strict';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
|
|
1010
1010
|
return Duration;
|
|
1011
1011
|
}(TemporalAmount);
|
|
1012
|
-
function _init() {
|
|
1012
|
+
function _init$n() {
|
|
1013
1013
|
Duration.ZERO = new Duration(0, 0);
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
* @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
|
|
1019
1019
|
*/
|
|
1020
1020
|
var YearConstants = function YearConstants() {};
|
|
1021
|
-
function _init$
|
|
1021
|
+
function _init$m() {
|
|
1022
1022
|
YearConstants.MIN_VALUE = -999999;
|
|
1023
1023
|
YearConstants.MAX_VALUE = 999999;
|
|
1024
1024
|
}
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
|
|
1090
1090
|
return ChronoUnit;
|
|
1091
1091
|
}(TemporalUnit);
|
|
1092
|
-
function _init$
|
|
1092
|
+
function _init$l() {
|
|
1093
1093
|
ChronoUnit.NANOS = new ChronoUnit('Nanos', Duration.ofNanos(1));
|
|
1094
1094
|
ChronoUnit.MICROS = new ChronoUnit('Micros', Duration.ofNanos(1000));
|
|
1095
1095
|
ChronoUnit.MILLIS = new ChronoUnit('Millis', Duration.ofNanos(1000000));
|
|
@@ -1372,7 +1372,7 @@
|
|
|
1372
1372
|
|
|
1373
1373
|
return ChronoField;
|
|
1374
1374
|
}(TemporalField);
|
|
1375
|
-
function _init$
|
|
1375
|
+
function _init$k() {
|
|
1376
1376
|
ChronoField.NANO_OF_SECOND = new ChronoField('NanoOfSecond', ChronoUnit.NANOS, ChronoUnit.SECONDS, ValueRange.of(0, 999999999));
|
|
1377
1377
|
ChronoField.NANO_OF_DAY = new ChronoField('NanoOfDay', ChronoUnit.NANOS, ChronoUnit.DAYS, ValueRange.of(0, 86400 * 1000000000 - 1));
|
|
1378
1378
|
ChronoField.MICRO_OF_SECOND = new ChronoField('MicroOfSecond', ChronoUnit.MICROS, ChronoUnit.SECONDS, ValueRange.of(0, 999999));
|
|
@@ -1673,7 +1673,7 @@
|
|
|
1673
1673
|
return DayOfWeek;
|
|
1674
1674
|
}(TemporalAccessor);
|
|
1675
1675
|
var ENUMS;
|
|
1676
|
-
function _init$
|
|
1676
|
+
function _init$j() {
|
|
1677
1677
|
DayOfWeek.MONDAY = new DayOfWeek(0, 'MONDAY');
|
|
1678
1678
|
DayOfWeek.TUESDAY = new DayOfWeek(1, 'TUESDAY');
|
|
1679
1679
|
DayOfWeek.WEDNESDAY = new DayOfWeek(2, 'WEDNESDAY');
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
return Month;
|
|
1987
1987
|
}(TemporalAccessor);
|
|
1988
1988
|
var MONTHS;
|
|
1989
|
-
function _init$
|
|
1989
|
+
function _init$i() {
|
|
1990
1990
|
Month.JANUARY = new Month(1, 'JANUARY');
|
|
1991
1991
|
Month.FEBRUARY = new Month(2, 'FEBRUARY');
|
|
1992
1992
|
Month.MARCH = new Month(3, 'MARCH');
|
|
@@ -2374,7 +2374,7 @@
|
|
|
2374
2374
|
|
|
2375
2375
|
return Period;
|
|
2376
2376
|
}(TemporalAmount);
|
|
2377
|
-
function _init$
|
|
2377
|
+
function _init$h() {
|
|
2378
2378
|
Period.ofDays(0);
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
@@ -3158,7 +3158,7 @@
|
|
|
3158
3158
|
|
|
3159
3159
|
return ZoneOffset;
|
|
3160
3160
|
}(ZoneId);
|
|
3161
|
-
function _init$
|
|
3161
|
+
function _init$g() {
|
|
3162
3162
|
ZoneOffset.MAX_SECONDS = 18 * LocalTime.SECONDS_PER_HOUR;
|
|
3163
3163
|
ZoneOffset.UTC = ZoneOffset.ofTotalSeconds(0);
|
|
3164
3164
|
ZoneOffset.MIN = ZoneOffset.ofTotalSeconds(-ZoneOffset.MAX_SECONDS);
|
|
@@ -4425,7 +4425,7 @@
|
|
|
4425
4425
|
var WEEK_BASED_YEAR = null;
|
|
4426
4426
|
var WEEK_BASED_YEARS = null;
|
|
4427
4427
|
var QUARTER_YEARS = null;
|
|
4428
|
-
function _init$
|
|
4428
|
+
function _init$f() {
|
|
4429
4429
|
DAY_OF_QUARTER = new DAY_OF_QUARTER_FIELD();
|
|
4430
4430
|
QUARTER_OF_YEAR = new QUARTER_OF_YEAR_FIELD();
|
|
4431
4431
|
WEEK_OF_WEEK_BASED_YEAR = new WEEK_OF_WEEK_BASED_YEAR_FIELD();
|
|
@@ -4969,7 +4969,7 @@
|
|
|
4969
4969
|
return FractionPrinterParser;
|
|
4970
4970
|
}();
|
|
4971
4971
|
|
|
4972
|
-
var MAX_WIDTH = 15;
|
|
4972
|
+
var MAX_WIDTH$1 = 15;
|
|
4973
4973
|
var EXCEED_POINTS = [0, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];
|
|
4974
4974
|
var NumberPrinterParser = function () {
|
|
4975
4975
|
function NumberPrinterParser(field, minWidth, maxWidth, signStyle, subsequentWidth) {
|
|
@@ -5039,7 +5039,7 @@
|
|
|
5039
5039
|
if (value >= 0) {
|
|
5040
5040
|
switch (this._signStyle) {
|
|
5041
5041
|
case SignStyle.EXCEEDS_PAD:
|
|
5042
|
-
if (this._minWidth < MAX_WIDTH && value >= EXCEED_POINTS[this._minWidth]) {
|
|
5042
|
+
if (this._minWidth < MAX_WIDTH$1 && value >= EXCEED_POINTS[this._minWidth]) {
|
|
5043
5043
|
buf.append(symbols.positiveSign());
|
|
5044
5044
|
}
|
|
5045
5045
|
|
|
@@ -5130,7 +5130,7 @@
|
|
|
5130
5130
|
break;
|
|
5131
5131
|
}
|
|
5132
5132
|
|
|
5133
|
-
if (pos - position > MAX_WIDTH) {
|
|
5133
|
+
if (pos - position > MAX_WIDTH$1) {
|
|
5134
5134
|
throw new ArithmeticException('number text exceeds length');
|
|
5135
5135
|
} else {
|
|
5136
5136
|
total = total * 10 + digit;
|
|
@@ -5181,7 +5181,7 @@
|
|
|
5181
5181
|
};
|
|
5182
5182
|
|
|
5183
5183
|
_proto.toString = function toString() {
|
|
5184
|
-
if (this._minWidth === 1 && this._maxWidth === MAX_WIDTH && this._signStyle === SignStyle.NORMAL) {
|
|
5184
|
+
if (this._minWidth === 1 && this._maxWidth === MAX_WIDTH$1 && this._signStyle === SignStyle.NORMAL) {
|
|
5185
5185
|
return "Value(" + this._field + ")";
|
|
5186
5186
|
}
|
|
5187
5187
|
|
|
@@ -5877,7 +5877,7 @@
|
|
|
5877
5877
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
5878
5878
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
5879
5879
|
*/
|
|
5880
|
-
var MAX_WIDTH
|
|
5880
|
+
var MAX_WIDTH = 15;
|
|
5881
5881
|
var DateTimeFormatterBuilder = function () {
|
|
5882
5882
|
function DateTimeFormatterBuilder() {
|
|
5883
5883
|
this._active = this;
|
|
@@ -5937,7 +5937,7 @@
|
|
|
5937
5937
|
_proto._appendValue1 = function _appendValue1(field) {
|
|
5938
5938
|
requireNonNull(field);
|
|
5939
5939
|
|
|
5940
|
-
this._appendValuePrinterParser(new NumberPrinterParser(field, 1, MAX_WIDTH
|
|
5940
|
+
this._appendValuePrinterParser(new NumberPrinterParser(field, 1, MAX_WIDTH, SignStyle.NORMAL));
|
|
5941
5941
|
|
|
5942
5942
|
return this;
|
|
5943
5943
|
};
|
|
@@ -5945,8 +5945,8 @@
|
|
|
5945
5945
|
_proto._appendValue2 = function _appendValue2(field, width) {
|
|
5946
5946
|
requireNonNull(field);
|
|
5947
5947
|
|
|
5948
|
-
if (width < 1 || width > MAX_WIDTH
|
|
5949
|
-
throw new IllegalArgumentException("The width must be from 1 to " + MAX_WIDTH
|
|
5948
|
+
if (width < 1 || width > MAX_WIDTH) {
|
|
5949
|
+
throw new IllegalArgumentException("The width must be from 1 to " + MAX_WIDTH + " inclusive but was " + width);
|
|
5950
5950
|
}
|
|
5951
5951
|
|
|
5952
5952
|
var pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE);
|
|
@@ -5964,12 +5964,12 @@
|
|
|
5964
5964
|
return this._appendValue2(field, maxWidth);
|
|
5965
5965
|
}
|
|
5966
5966
|
|
|
5967
|
-
if (minWidth < 1 || minWidth > MAX_WIDTH
|
|
5968
|
-
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH
|
|
5967
|
+
if (minWidth < 1 || minWidth > MAX_WIDTH) {
|
|
5968
|
+
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH + " inclusive but was " + minWidth);
|
|
5969
5969
|
}
|
|
5970
5970
|
|
|
5971
|
-
if (maxWidth < 1 || maxWidth > MAX_WIDTH
|
|
5972
|
-
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH
|
|
5971
|
+
if (maxWidth < 1 || maxWidth > MAX_WIDTH) {
|
|
5972
|
+
throw new IllegalArgumentException("The minimum width must be from 1 to " + MAX_WIDTH + " inclusive but was " + maxWidth);
|
|
5973
5973
|
}
|
|
5974
5974
|
|
|
5975
5975
|
if (maxWidth < minWidth) {
|
|
@@ -6277,9 +6277,9 @@
|
|
|
6277
6277
|
if (count === 2) {
|
|
6278
6278
|
this.appendValueReduced(field, 2, 2, ReducedPrinterParser.BASE_DATE);
|
|
6279
6279
|
} else if (count < 4) {
|
|
6280
|
-
this.appendValue(field, count, MAX_WIDTH
|
|
6280
|
+
this.appendValue(field, count, MAX_WIDTH, SignStyle.NORMAL);
|
|
6281
6281
|
} else {
|
|
6282
|
-
this.appendValue(field, count, MAX_WIDTH
|
|
6282
|
+
this.appendValue(field, count, MAX_WIDTH, SignStyle.EXCEEDS_PAD);
|
|
6283
6283
|
}
|
|
6284
6284
|
|
|
6285
6285
|
break;
|
|
@@ -6747,7 +6747,7 @@
|
|
|
6747
6747
|
return InstantPrinterParser;
|
|
6748
6748
|
}();
|
|
6749
6749
|
|
|
6750
|
-
function _init$
|
|
6750
|
+
function _init$e() {
|
|
6751
6751
|
ReducedPrinterParser.BASE_DATE = LocalDate.of(2000, 1, 1);
|
|
6752
6752
|
DateTimeFormatterBuilder.CompositePrinterParser = CompositePrinterParser;
|
|
6753
6753
|
DateTimeFormatterBuilder.PadPrinterParserDecorator = PadPrinterParserDecorator;
|
|
@@ -7003,7 +7003,7 @@
|
|
|
7003
7003
|
|
|
7004
7004
|
return DateTimeFormatter;
|
|
7005
7005
|
}();
|
|
7006
|
-
function _init$
|
|
7006
|
+
function _init$d() {
|
|
7007
7007
|
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);
|
|
7008
7008
|
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);
|
|
7009
7009
|
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);
|
|
@@ -7111,7 +7111,7 @@
|
|
|
7111
7111
|
};
|
|
7112
7112
|
|
|
7113
7113
|
MonthDay.parseString = function parseString(text) {
|
|
7114
|
-
return MonthDay.parseStringFormatter(text, PARSER);
|
|
7114
|
+
return MonthDay.parseStringFormatter(text, PARSER$2);
|
|
7115
7115
|
};
|
|
7116
7116
|
|
|
7117
7117
|
MonthDay.parseStringFormatter = function parseStringFormatter(text, formatter) {
|
|
@@ -7285,9 +7285,9 @@
|
|
|
7285
7285
|
|
|
7286
7286
|
return MonthDay;
|
|
7287
7287
|
}(TemporalAccessor);
|
|
7288
|
-
var PARSER;
|
|
7289
|
-
function _init$
|
|
7290
|
-
PARSER = new DateTimeFormatterBuilder().appendLiteral('--').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter();
|
|
7288
|
+
var PARSER$2;
|
|
7289
|
+
function _init$c() {
|
|
7290
|
+
PARSER$2 = new DateTimeFormatterBuilder().appendLiteral('--').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter();
|
|
7291
7291
|
MonthDay.FROM = createTemporalQuery('MonthDay.FROM', function (temporal) {
|
|
7292
7292
|
return MonthDay.from(temporal);
|
|
7293
7293
|
});
|
|
@@ -7648,6 +7648,7 @@
|
|
|
7648
7648
|
};
|
|
7649
7649
|
|
|
7650
7650
|
_proto.atDay = function atDay(dayOfMonth) {
|
|
7651
|
+
requireNonNull(dayOfMonth, 'dayOfMonth');
|
|
7651
7652
|
return LocalDate.of(this._year, this._month, dayOfMonth);
|
|
7652
7653
|
};
|
|
7653
7654
|
|
|
@@ -7704,7 +7705,7 @@
|
|
|
7704
7705
|
return YearMonth;
|
|
7705
7706
|
}(Temporal);
|
|
7706
7707
|
var PARSER$1;
|
|
7707
|
-
function _init$
|
|
7708
|
+
function _init$b() {
|
|
7708
7709
|
PARSER$1 = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).appendLiteral('-').appendValue(ChronoField.MONTH_OF_YEAR, 2).toFormatter();
|
|
7709
7710
|
YearMonth.FROM = createTemporalQuery('YearMonth.FROM', function (temporal) {
|
|
7710
7711
|
return YearMonth.from(temporal);
|
|
@@ -7790,12 +7791,12 @@
|
|
|
7790
7791
|
|
|
7791
7792
|
Year.parseText = function parseText(text) {
|
|
7792
7793
|
requireNonNull(text, 'text');
|
|
7793
|
-
return Year.parse(text, PARSER
|
|
7794
|
+
return Year.parse(text, PARSER);
|
|
7794
7795
|
};
|
|
7795
7796
|
|
|
7796
7797
|
Year.parseTextFormatter = function parseTextFormatter(text, formatter) {
|
|
7797
7798
|
if (formatter === void 0) {
|
|
7798
|
-
formatter = PARSER
|
|
7799
|
+
formatter = PARSER;
|
|
7799
7800
|
}
|
|
7800
7801
|
|
|
7801
7802
|
requireNonNull(text, 'text');
|
|
@@ -8068,11 +8069,11 @@
|
|
|
8068
8069
|
|
|
8069
8070
|
return Year;
|
|
8070
8071
|
}(Temporal);
|
|
8071
|
-
var PARSER
|
|
8072
|
-
function _init$
|
|
8072
|
+
var PARSER;
|
|
8073
|
+
function _init$a() {
|
|
8073
8074
|
Year.MIN_VALUE = YearConstants.MIN_VALUE;
|
|
8074
8075
|
Year.MAX_VALUE = YearConstants.MAX_VALUE;
|
|
8075
|
-
PARSER
|
|
8076
|
+
PARSER = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).toFormatter();
|
|
8076
8077
|
Year.FROM = createTemporalQuery('Year.FROM', function (temporal) {
|
|
8077
8078
|
return Year.from(temporal);
|
|
8078
8079
|
});
|
|
@@ -8446,7 +8447,7 @@
|
|
|
8446
8447
|
|
|
8447
8448
|
return IsoChronology;
|
|
8448
8449
|
}(Enum);
|
|
8449
|
-
function _init$
|
|
8450
|
+
function _init$9() {
|
|
8450
8451
|
IsoChronology.INSTANCE = new IsoChronology('IsoChronology');
|
|
8451
8452
|
}
|
|
8452
8453
|
|
|
@@ -8867,7 +8868,7 @@
|
|
|
8867
8868
|
|
|
8868
8869
|
return OffsetTime;
|
|
8869
8870
|
}(Temporal);
|
|
8870
|
-
function _init$
|
|
8871
|
+
function _init$8() {
|
|
8871
8872
|
OffsetTime.MIN = OffsetTime.ofNumbers(0, 0, 0, 0, ZoneOffset.MAX);
|
|
8872
8873
|
OffsetTime.MAX = OffsetTime.ofNumbers(23, 59, 59, 999999999, ZoneOffset.MIN);
|
|
8873
8874
|
OffsetTime.FROM = createTemporalQuery('OffsetTime.FROM', function (temporal) {
|
|
@@ -9553,7 +9554,7 @@
|
|
|
9553
9554
|
|
|
9554
9555
|
return ZonedDateTime;
|
|
9555
9556
|
}(ChronoZonedDateTime);
|
|
9556
|
-
function _init$
|
|
9557
|
+
function _init$7() {
|
|
9557
9558
|
ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
|
|
9558
9559
|
return ZonedDateTime.from(temporal);
|
|
9559
9560
|
});
|
|
@@ -10103,7 +10104,7 @@
|
|
|
10103
10104
|
|
|
10104
10105
|
return OffsetDateTime;
|
|
10105
10106
|
}(Temporal);
|
|
10106
|
-
function _init$
|
|
10107
|
+
function _init$6() {
|
|
10107
10108
|
OffsetDateTime.MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX);
|
|
10108
10109
|
OffsetDateTime.MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN);
|
|
10109
10110
|
OffsetDateTime.FROM = createTemporalQuery('OffsetDateTime.FROM', function (temporal) {
|
|
@@ -10902,7 +10903,7 @@
|
|
|
10902
10903
|
|
|
10903
10904
|
return LocalDate;
|
|
10904
10905
|
}(ChronoLocalDate);
|
|
10905
|
-
function _init$
|
|
10906
|
+
function _init$5() {
|
|
10906
10907
|
LocalDate.MIN = LocalDate.of(YearConstants.MIN_VALUE, 1, 1);
|
|
10907
10908
|
LocalDate.MAX = LocalDate.of(YearConstants.MAX_VALUE, 12, 31);
|
|
10908
10909
|
LocalDate.EPOCH_0 = LocalDate.ofEpochDay(0);
|
|
@@ -11541,7 +11542,7 @@
|
|
|
11541
11542
|
|
|
11542
11543
|
return LocalDateTime;
|
|
11543
11544
|
}(ChronoLocalDateTime);
|
|
11544
|
-
function _init$
|
|
11545
|
+
function _init$4() {
|
|
11545
11546
|
LocalDateTime.MIN = LocalDateTime.of(LocalDate.MIN, LocalTime.MIN);
|
|
11546
11547
|
LocalDateTime.MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX);
|
|
11547
11548
|
LocalDateTime.FROM = createTemporalQuery('LocalDateTime.FROM', function (temporal) {
|
|
@@ -12227,7 +12228,7 @@
|
|
|
12227
12228
|
|
|
12228
12229
|
return LocalTime;
|
|
12229
12230
|
}(Temporal);
|
|
12230
|
-
function _init$
|
|
12231
|
+
function _init$3() {
|
|
12231
12232
|
LocalTime.HOURS = [];
|
|
12232
12233
|
|
|
12233
12234
|
for (var hour = 0; hour < 24; hour++) {
|
|
@@ -12283,6 +12284,12 @@
|
|
|
12283
12284
|
return Instant._create(secs, mos * 1000000);
|
|
12284
12285
|
};
|
|
12285
12286
|
|
|
12287
|
+
Instant.ofEpochMicro = function ofEpochMicro(epochMicro) {
|
|
12288
|
+
var secs = MathUtil.floorDiv(epochMicro, 1000000);
|
|
12289
|
+
var mos = MathUtil.floorMod(epochMicro, 1000000);
|
|
12290
|
+
return Instant._create(secs, mos * 1000);
|
|
12291
|
+
};
|
|
12292
|
+
|
|
12286
12293
|
Instant.from = function from(temporal) {
|
|
12287
12294
|
try {
|
|
12288
12295
|
var instantSecs = temporal.getLong(ChronoField.INSTANT_SECONDS);
|
|
@@ -12448,7 +12455,7 @@
|
|
|
12448
12455
|
return this.plusNanos(amountToAdd);
|
|
12449
12456
|
|
|
12450
12457
|
case ChronoUnit.MICROS:
|
|
12451
|
-
return this.
|
|
12458
|
+
return this.plusMicros(amountToAdd);
|
|
12452
12459
|
|
|
12453
12460
|
case ChronoUnit.MILLIS:
|
|
12454
12461
|
return this.plusMillis(amountToAdd);
|
|
@@ -12487,6 +12494,10 @@
|
|
|
12487
12494
|
return this._plus(0, nanosToAdd);
|
|
12488
12495
|
};
|
|
12489
12496
|
|
|
12497
|
+
_proto.plusMicros = function plusMicros(microsToAdd) {
|
|
12498
|
+
return this._plus(MathUtil.intDiv(microsToAdd, 1000000), MathUtil.intMod(microsToAdd, 1000000) * 1000);
|
|
12499
|
+
};
|
|
12500
|
+
|
|
12490
12501
|
_proto._plus = function _plus(secondsToAdd, nanosToAdd) {
|
|
12491
12502
|
if (secondsToAdd === 0 && nanosToAdd === 0) {
|
|
12492
12503
|
return this;
|
|
@@ -12514,6 +12525,10 @@
|
|
|
12514
12525
|
return this.plusNanos(-1 * nanosToSubtract);
|
|
12515
12526
|
};
|
|
12516
12527
|
|
|
12528
|
+
_proto.minusMicros = function minusMicros(microsToSubtract) {
|
|
12529
|
+
return this.plusMicros(-1 * microsToSubtract);
|
|
12530
|
+
};
|
|
12531
|
+
|
|
12517
12532
|
_proto.query = function query(_query) {
|
|
12518
12533
|
requireNonNull(_query, 'query');
|
|
12519
12534
|
|
|
@@ -12655,7 +12670,7 @@
|
|
|
12655
12670
|
|
|
12656
12671
|
return Instant;
|
|
12657
12672
|
}(Temporal);
|
|
12658
|
-
function _init$
|
|
12673
|
+
function _init$2() {
|
|
12659
12674
|
Instant.MIN_SECONDS = -31619119219200;
|
|
12660
12675
|
Instant.MAX_SECONDS = 31494816403199;
|
|
12661
12676
|
Instant.EPOCH = new Instant(0, 0);
|
|
@@ -12977,7 +12992,7 @@
|
|
|
12977
12992
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
12978
12993
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
12979
12994
|
*/
|
|
12980
|
-
function _init$
|
|
12995
|
+
function _init$1() {
|
|
12981
12996
|
TemporalQueries.ZONE_ID = createTemporalQuery('ZONE_ID', function (temporal) {
|
|
12982
12997
|
return temporal.query(TemporalQueries.ZONE_ID);
|
|
12983
12998
|
});
|
|
@@ -13231,7 +13246,7 @@
|
|
|
13231
13246
|
return ZoneIdFactory;
|
|
13232
13247
|
}();
|
|
13233
13248
|
var SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
|
|
13234
|
-
function _init
|
|
13249
|
+
function _init() {
|
|
13235
13250
|
SYSTEM_DEFAULT_ZONE_ID_INSTANCE = new SystemDefaultZoneId();
|
|
13236
13251
|
ZoneId.systemDefault = ZoneIdFactory.systemDefault;
|
|
13237
13252
|
ZoneId.getAvailableZoneIds = ZoneIdFactory.getAvailableZoneIds;
|
|
@@ -13255,30 +13270,30 @@
|
|
|
13255
13270
|
}
|
|
13256
13271
|
|
|
13257
13272
|
isInit = true;
|
|
13258
|
-
_init$1();
|
|
13259
|
-
_init();
|
|
13260
|
-
_init$2();
|
|
13261
|
-
_init$3();
|
|
13262
|
-
_init$k();
|
|
13263
|
-
_init$8();
|
|
13264
13273
|
_init$m();
|
|
13265
|
-
_init$
|
|
13274
|
+
_init$n();
|
|
13266
13275
|
_init$l();
|
|
13267
|
-
_init$
|
|
13276
|
+
_init$k();
|
|
13277
|
+
_init$3();
|
|
13278
|
+
_init$f();
|
|
13279
|
+
_init$1();
|
|
13268
13280
|
_init$j();
|
|
13269
|
-
_init$
|
|
13281
|
+
_init$2();
|
|
13270
13282
|
_init$5();
|
|
13271
|
-
_init$
|
|
13283
|
+
_init$4();
|
|
13284
|
+
_init$a();
|
|
13285
|
+
_init$i();
|
|
13272
13286
|
_init$b();
|
|
13273
|
-
_init$
|
|
13274
|
-
_init$
|
|
13287
|
+
_init$c();
|
|
13288
|
+
_init$h();
|
|
13275
13289
|
_init$g();
|
|
13276
|
-
_init$
|
|
13277
|
-
_init
|
|
13278
|
-
_init$a();
|
|
13290
|
+
_init$7();
|
|
13291
|
+
_init();
|
|
13279
13292
|
_init$9();
|
|
13280
|
-
_init$
|
|
13281
|
-
_init$
|
|
13293
|
+
_init$d();
|
|
13294
|
+
_init$e();
|
|
13295
|
+
_init$6();
|
|
13296
|
+
_init$8();
|
|
13282
13297
|
}
|
|
13283
13298
|
|
|
13284
13299
|
init();
|
|
@@ -13549,5 +13564,5 @@
|
|
|
13549
13564
|
|
|
13550
13565
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13551
13566
|
|
|
13552
|
-
}))
|
|
13567
|
+
}));
|
|
13553
13568
|
//# sourceMappingURL=js-joda.js.map
|