@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.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)
|
|
@@ -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
|
});
|
|
@@ -7704,7 +7704,7 @@
|
|
|
7704
7704
|
return YearMonth;
|
|
7705
7705
|
}(Temporal);
|
|
7706
7706
|
var PARSER$1;
|
|
7707
|
-
function _init$
|
|
7707
|
+
function _init$b() {
|
|
7708
7708
|
PARSER$1 = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).appendLiteral('-').appendValue(ChronoField.MONTH_OF_YEAR, 2).toFormatter();
|
|
7709
7709
|
YearMonth.FROM = createTemporalQuery('YearMonth.FROM', function (temporal) {
|
|
7710
7710
|
return YearMonth.from(temporal);
|
|
@@ -7790,12 +7790,12 @@
|
|
|
7790
7790
|
|
|
7791
7791
|
Year.parseText = function parseText(text) {
|
|
7792
7792
|
requireNonNull(text, 'text');
|
|
7793
|
-
return Year.parse(text, PARSER
|
|
7793
|
+
return Year.parse(text, PARSER);
|
|
7794
7794
|
};
|
|
7795
7795
|
|
|
7796
7796
|
Year.parseTextFormatter = function parseTextFormatter(text, formatter) {
|
|
7797
7797
|
if (formatter === void 0) {
|
|
7798
|
-
formatter = PARSER
|
|
7798
|
+
formatter = PARSER;
|
|
7799
7799
|
}
|
|
7800
7800
|
|
|
7801
7801
|
requireNonNull(text, 'text');
|
|
@@ -8068,11 +8068,11 @@
|
|
|
8068
8068
|
|
|
8069
8069
|
return Year;
|
|
8070
8070
|
}(Temporal);
|
|
8071
|
-
var PARSER
|
|
8072
|
-
function _init$
|
|
8071
|
+
var PARSER;
|
|
8072
|
+
function _init$a() {
|
|
8073
8073
|
Year.MIN_VALUE = YearConstants.MIN_VALUE;
|
|
8074
8074
|
Year.MAX_VALUE = YearConstants.MAX_VALUE;
|
|
8075
|
-
PARSER
|
|
8075
|
+
PARSER = new DateTimeFormatterBuilder().appendValue(ChronoField.YEAR, 4, 10, SignStyle.EXCEEDS_PAD).toFormatter();
|
|
8076
8076
|
Year.FROM = createTemporalQuery('Year.FROM', function (temporal) {
|
|
8077
8077
|
return Year.from(temporal);
|
|
8078
8078
|
});
|
|
@@ -8446,7 +8446,7 @@
|
|
|
8446
8446
|
|
|
8447
8447
|
return IsoChronology;
|
|
8448
8448
|
}(Enum);
|
|
8449
|
-
function _init$
|
|
8449
|
+
function _init$9() {
|
|
8450
8450
|
IsoChronology.INSTANCE = new IsoChronology('IsoChronology');
|
|
8451
8451
|
}
|
|
8452
8452
|
|
|
@@ -8867,7 +8867,7 @@
|
|
|
8867
8867
|
|
|
8868
8868
|
return OffsetTime;
|
|
8869
8869
|
}(Temporal);
|
|
8870
|
-
function _init$
|
|
8870
|
+
function _init$8() {
|
|
8871
8871
|
OffsetTime.MIN = OffsetTime.ofNumbers(0, 0, 0, 0, ZoneOffset.MAX);
|
|
8872
8872
|
OffsetTime.MAX = OffsetTime.ofNumbers(23, 59, 59, 999999999, ZoneOffset.MIN);
|
|
8873
8873
|
OffsetTime.FROM = createTemporalQuery('OffsetTime.FROM', function (temporal) {
|
|
@@ -9553,7 +9553,7 @@
|
|
|
9553
9553
|
|
|
9554
9554
|
return ZonedDateTime;
|
|
9555
9555
|
}(ChronoZonedDateTime);
|
|
9556
|
-
function _init$
|
|
9556
|
+
function _init$7() {
|
|
9557
9557
|
ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
|
|
9558
9558
|
return ZonedDateTime.from(temporal);
|
|
9559
9559
|
});
|
|
@@ -10103,7 +10103,7 @@
|
|
|
10103
10103
|
|
|
10104
10104
|
return OffsetDateTime;
|
|
10105
10105
|
}(Temporal);
|
|
10106
|
-
function _init$
|
|
10106
|
+
function _init$6() {
|
|
10107
10107
|
OffsetDateTime.MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX);
|
|
10108
10108
|
OffsetDateTime.MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN);
|
|
10109
10109
|
OffsetDateTime.FROM = createTemporalQuery('OffsetDateTime.FROM', function (temporal) {
|
|
@@ -10902,7 +10902,7 @@
|
|
|
10902
10902
|
|
|
10903
10903
|
return LocalDate;
|
|
10904
10904
|
}(ChronoLocalDate);
|
|
10905
|
-
function _init$
|
|
10905
|
+
function _init$5() {
|
|
10906
10906
|
LocalDate.MIN = LocalDate.of(YearConstants.MIN_VALUE, 1, 1);
|
|
10907
10907
|
LocalDate.MAX = LocalDate.of(YearConstants.MAX_VALUE, 12, 31);
|
|
10908
10908
|
LocalDate.EPOCH_0 = LocalDate.ofEpochDay(0);
|
|
@@ -11541,7 +11541,7 @@
|
|
|
11541
11541
|
|
|
11542
11542
|
return LocalDateTime;
|
|
11543
11543
|
}(ChronoLocalDateTime);
|
|
11544
|
-
function _init$
|
|
11544
|
+
function _init$4() {
|
|
11545
11545
|
LocalDateTime.MIN = LocalDateTime.of(LocalDate.MIN, LocalTime.MIN);
|
|
11546
11546
|
LocalDateTime.MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX);
|
|
11547
11547
|
LocalDateTime.FROM = createTemporalQuery('LocalDateTime.FROM', function (temporal) {
|
|
@@ -12227,7 +12227,7 @@
|
|
|
12227
12227
|
|
|
12228
12228
|
return LocalTime;
|
|
12229
12229
|
}(Temporal);
|
|
12230
|
-
function _init$
|
|
12230
|
+
function _init$3() {
|
|
12231
12231
|
LocalTime.HOURS = [];
|
|
12232
12232
|
|
|
12233
12233
|
for (var hour = 0; hour < 24; hour++) {
|
|
@@ -12283,6 +12283,12 @@
|
|
|
12283
12283
|
return Instant._create(secs, mos * 1000000);
|
|
12284
12284
|
};
|
|
12285
12285
|
|
|
12286
|
+
Instant.ofEpochMicro = function ofEpochMicro(epochMicro) {
|
|
12287
|
+
var secs = MathUtil.floorDiv(epochMicro, 1000000);
|
|
12288
|
+
var mos = MathUtil.floorMod(epochMicro, 1000000);
|
|
12289
|
+
return Instant._create(secs, mos * 1000);
|
|
12290
|
+
};
|
|
12291
|
+
|
|
12286
12292
|
Instant.from = function from(temporal) {
|
|
12287
12293
|
try {
|
|
12288
12294
|
var instantSecs = temporal.getLong(ChronoField.INSTANT_SECONDS);
|
|
@@ -12448,7 +12454,7 @@
|
|
|
12448
12454
|
return this.plusNanos(amountToAdd);
|
|
12449
12455
|
|
|
12450
12456
|
case ChronoUnit.MICROS:
|
|
12451
|
-
return this.
|
|
12457
|
+
return this.plusMicros(amountToAdd);
|
|
12452
12458
|
|
|
12453
12459
|
case ChronoUnit.MILLIS:
|
|
12454
12460
|
return this.plusMillis(amountToAdd);
|
|
@@ -12487,6 +12493,10 @@
|
|
|
12487
12493
|
return this._plus(0, nanosToAdd);
|
|
12488
12494
|
};
|
|
12489
12495
|
|
|
12496
|
+
_proto.plusMicros = function plusMicros(microsToAdd) {
|
|
12497
|
+
return this._plus(MathUtil.intDiv(microsToAdd, 1000000), MathUtil.intMod(microsToAdd, 1000000) * 1000);
|
|
12498
|
+
};
|
|
12499
|
+
|
|
12490
12500
|
_proto._plus = function _plus(secondsToAdd, nanosToAdd) {
|
|
12491
12501
|
if (secondsToAdd === 0 && nanosToAdd === 0) {
|
|
12492
12502
|
return this;
|
|
@@ -12514,6 +12524,10 @@
|
|
|
12514
12524
|
return this.plusNanos(-1 * nanosToSubtract);
|
|
12515
12525
|
};
|
|
12516
12526
|
|
|
12527
|
+
_proto.minusMicros = function minusMicros(microsToSubtract) {
|
|
12528
|
+
return this.plusMicros(-1 * microsToSubtract);
|
|
12529
|
+
};
|
|
12530
|
+
|
|
12517
12531
|
_proto.query = function query(_query) {
|
|
12518
12532
|
requireNonNull(_query, 'query');
|
|
12519
12533
|
|
|
@@ -12655,7 +12669,7 @@
|
|
|
12655
12669
|
|
|
12656
12670
|
return Instant;
|
|
12657
12671
|
}(Temporal);
|
|
12658
|
-
function _init$
|
|
12672
|
+
function _init$2() {
|
|
12659
12673
|
Instant.MIN_SECONDS = -31619119219200;
|
|
12660
12674
|
Instant.MAX_SECONDS = 31494816403199;
|
|
12661
12675
|
Instant.EPOCH = new Instant(0, 0);
|
|
@@ -12977,7 +12991,7 @@
|
|
|
12977
12991
|
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
12978
12992
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
12979
12993
|
*/
|
|
12980
|
-
function _init$
|
|
12994
|
+
function _init$1() {
|
|
12981
12995
|
TemporalQueries.ZONE_ID = createTemporalQuery('ZONE_ID', function (temporal) {
|
|
12982
12996
|
return temporal.query(TemporalQueries.ZONE_ID);
|
|
12983
12997
|
});
|
|
@@ -13231,7 +13245,7 @@
|
|
|
13231
13245
|
return ZoneIdFactory;
|
|
13232
13246
|
}();
|
|
13233
13247
|
var SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
|
|
13234
|
-
function _init
|
|
13248
|
+
function _init() {
|
|
13235
13249
|
SYSTEM_DEFAULT_ZONE_ID_INSTANCE = new SystemDefaultZoneId();
|
|
13236
13250
|
ZoneId.systemDefault = ZoneIdFactory.systemDefault;
|
|
13237
13251
|
ZoneId.getAvailableZoneIds = ZoneIdFactory.getAvailableZoneIds;
|
|
@@ -13255,30 +13269,30 @@
|
|
|
13255
13269
|
}
|
|
13256
13270
|
|
|
13257
13271
|
isInit = true;
|
|
13258
|
-
_init$1();
|
|
13259
|
-
_init();
|
|
13260
|
-
_init$2();
|
|
13261
|
-
_init$3();
|
|
13262
|
-
_init$k();
|
|
13263
|
-
_init$8();
|
|
13264
13272
|
_init$m();
|
|
13265
|
-
_init$
|
|
13273
|
+
_init$n();
|
|
13266
13274
|
_init$l();
|
|
13267
|
-
_init$
|
|
13275
|
+
_init$k();
|
|
13276
|
+
_init$3();
|
|
13277
|
+
_init$f();
|
|
13278
|
+
_init$1();
|
|
13268
13279
|
_init$j();
|
|
13269
|
-
_init$
|
|
13280
|
+
_init$2();
|
|
13270
13281
|
_init$5();
|
|
13271
|
-
_init$
|
|
13282
|
+
_init$4();
|
|
13283
|
+
_init$a();
|
|
13284
|
+
_init$i();
|
|
13272
13285
|
_init$b();
|
|
13273
|
-
_init$
|
|
13274
|
-
_init$
|
|
13286
|
+
_init$c();
|
|
13287
|
+
_init$h();
|
|
13275
13288
|
_init$g();
|
|
13276
|
-
_init$
|
|
13277
|
-
_init
|
|
13278
|
-
_init$a();
|
|
13289
|
+
_init$7();
|
|
13290
|
+
_init();
|
|
13279
13291
|
_init$9();
|
|
13280
|
-
_init$
|
|
13281
|
-
_init$
|
|
13292
|
+
_init$d();
|
|
13293
|
+
_init$e();
|
|
13294
|
+
_init$6();
|
|
13295
|
+
_init$8();
|
|
13282
13296
|
}
|
|
13283
13297
|
|
|
13284
13298
|
init();
|
|
@@ -13549,5 +13563,5 @@
|
|
|
13549
13563
|
|
|
13550
13564
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13551
13565
|
|
|
13552
|
-
}))
|
|
13566
|
+
}));
|
|
13553
13567
|
//# sourceMappingURL=js-joda.js.map
|