@js-joda/core 5.7.0 → 6.0.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/README.md +0 -2
- package/dist/js-joda.cjs.js +204 -227
- package/dist/js-joda.cjs.js.map +1 -1
- package/dist/js-joda.esm.js +204 -227
- package/dist/js-joda.esm.js.map +1 -1
- package/dist/js-joda.js +204 -227
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +2 -3
- package/src/MathUtil.js +1 -5
- package/src/nativeJs.js +2 -8
package/dist/js-joda.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/core -
|
|
1
|
+
//! @version @js-joda/core - 6.0.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)
|
|
@@ -70,23 +70,17 @@ function messageForDateTimeParseException(message, text, index, cause) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_setPrototypeOf(subClass, superClass);
|
|
73
|
+
function _assertThisInitialized(e) {
|
|
74
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
75
|
+
return e;
|
|
77
76
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
o.__proto__ = p;
|
|
81
|
-
return o;
|
|
82
|
-
};
|
|
83
|
-
return _setPrototypeOf(o, p);
|
|
77
|
+
function _inheritsLoose(t, o) {
|
|
78
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
84
79
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
return self;
|
|
80
|
+
function _setPrototypeOf(t, e) {
|
|
81
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
82
|
+
return t.__proto__ = e, t;
|
|
83
|
+
}, _setPrototypeOf(t, e);
|
|
90
84
|
}
|
|
91
85
|
|
|
92
86
|
/**
|
|
@@ -205,18 +199,10 @@ var MathUtil = function () {
|
|
|
205
199
|
}
|
|
206
200
|
return r;
|
|
207
201
|
};
|
|
208
|
-
MathUtil.parseInt = function (
|
|
209
|
-
function parseInt(_x) {
|
|
210
|
-
return _parseInt.apply(this, arguments);
|
|
211
|
-
}
|
|
212
|
-
parseInt.toString = function () {
|
|
213
|
-
return _parseInt.toString();
|
|
214
|
-
};
|
|
215
|
-
return parseInt;
|
|
216
|
-
}(function (value) {
|
|
202
|
+
MathUtil.parseInt = function (value) {
|
|
217
203
|
var r = parseInt(value);
|
|
218
204
|
return MathUtil.safeToInt(r);
|
|
219
|
-
}
|
|
205
|
+
};
|
|
220
206
|
MathUtil.safeToInt = function safeToInt(value) {
|
|
221
207
|
MathUtil.verifyInt(value);
|
|
222
208
|
return MathUtil.safeZero(value);
|
|
@@ -228,11 +214,7 @@ var MathUtil = function () {
|
|
|
228
214
|
if (isNaN(value)) {
|
|
229
215
|
throw new ArithmeticException('Invalid int value, using NaN as argument');
|
|
230
216
|
}
|
|
231
|
-
if (Number.isInteger) {
|
|
232
|
-
if (!Number.isInteger(Number(value))) {
|
|
233
|
-
throw new ArithmeticException("Invalid value: '" + value + "' is a float");
|
|
234
|
-
}
|
|
235
|
-
} else if (value % 1 !== 0) {
|
|
217
|
+
if (!Number.isInteger(Number(value))) {
|
|
236
218
|
throw new ArithmeticException("Invalid value: '" + value + "' is a float");
|
|
237
219
|
}
|
|
238
220
|
if (value > MAX_SAFE_INTEGER || value < MIN_SAFE_INTEGER) {
|
|
@@ -367,7 +349,6 @@ var TemporalUnit = function () {
|
|
|
367
349
|
}();
|
|
368
350
|
|
|
369
351
|
var Duration = function (_TemporalAmount) {
|
|
370
|
-
_inheritsLoose(Duration, _TemporalAmount);
|
|
371
352
|
function Duration(seconds, nanos) {
|
|
372
353
|
var _this;
|
|
373
354
|
_this = _TemporalAmount.call(this) || this;
|
|
@@ -375,6 +356,7 @@ var Duration = function (_TemporalAmount) {
|
|
|
375
356
|
_this._nanos = MathUtil.safeToInt(nanos);
|
|
376
357
|
return _this;
|
|
377
358
|
}
|
|
359
|
+
_inheritsLoose(Duration, _TemporalAmount);
|
|
378
360
|
Duration.ofDays = function ofDays(days) {
|
|
379
361
|
return Duration._create(MathUtil.safeMultiply(days, LocalTime.SECONDS_PER_DAY), 0);
|
|
380
362
|
};
|
|
@@ -823,7 +805,6 @@ function _init$m() {
|
|
|
823
805
|
}
|
|
824
806
|
|
|
825
807
|
var ChronoUnit = function (_TemporalUnit) {
|
|
826
|
-
_inheritsLoose(ChronoUnit, _TemporalUnit);
|
|
827
808
|
function ChronoUnit(name, estimatedDuration) {
|
|
828
809
|
var _this;
|
|
829
810
|
_this = _TemporalUnit.call(this) || this;
|
|
@@ -831,6 +812,7 @@ var ChronoUnit = function (_TemporalUnit) {
|
|
|
831
812
|
_this._duration = estimatedDuration;
|
|
832
813
|
return _this;
|
|
833
814
|
}
|
|
815
|
+
_inheritsLoose(ChronoUnit, _TemporalUnit);
|
|
834
816
|
var _proto = ChronoUnit.prototype;
|
|
835
817
|
_proto.duration = function duration() {
|
|
836
818
|
return this._duration;
|
|
@@ -1032,6 +1014,15 @@ var ValueRange = function () {
|
|
|
1032
1014
|
}();
|
|
1033
1015
|
|
|
1034
1016
|
var ChronoField = function (_TemporalField) {
|
|
1017
|
+
function ChronoField(name, baseUnit, rangeUnit, range) {
|
|
1018
|
+
var _this;
|
|
1019
|
+
_this = _TemporalField.call(this) || this;
|
|
1020
|
+
_this._name = name;
|
|
1021
|
+
_this._baseUnit = baseUnit;
|
|
1022
|
+
_this._rangeUnit = rangeUnit;
|
|
1023
|
+
_this._range = range;
|
|
1024
|
+
return _this;
|
|
1025
|
+
}
|
|
1035
1026
|
_inheritsLoose(ChronoField, _TemporalField);
|
|
1036
1027
|
ChronoField.byName = function byName(fieldName) {
|
|
1037
1028
|
for (var prop in ChronoField) {
|
|
@@ -1042,15 +1033,6 @@ var ChronoField = function (_TemporalField) {
|
|
|
1042
1033
|
}
|
|
1043
1034
|
}
|
|
1044
1035
|
};
|
|
1045
|
-
function ChronoField(name, baseUnit, rangeUnit, range) {
|
|
1046
|
-
var _this;
|
|
1047
|
-
_this = _TemporalField.call(this) || this;
|
|
1048
|
-
_this._name = name;
|
|
1049
|
-
_this._baseUnit = baseUnit;
|
|
1050
|
-
_this._rangeUnit = rangeUnit;
|
|
1051
|
-
_this._range = range;
|
|
1052
|
-
return _this;
|
|
1053
|
-
}
|
|
1054
1036
|
var _proto = ChronoField.prototype;
|
|
1055
1037
|
_proto.name = function name() {
|
|
1056
1038
|
return this._name;
|
|
@@ -1201,10 +1183,10 @@ var TemporalAccessor = function () {
|
|
|
1201
1183
|
}();
|
|
1202
1184
|
|
|
1203
1185
|
var TemporalQuery = function (_Enum) {
|
|
1204
|
-
_inheritsLoose(TemporalQuery, _Enum);
|
|
1205
1186
|
function TemporalQuery() {
|
|
1206
1187
|
return _Enum.apply(this, arguments) || this;
|
|
1207
1188
|
}
|
|
1189
|
+
_inheritsLoose(TemporalQuery, _Enum);
|
|
1208
1190
|
var _proto = TemporalQuery.prototype;
|
|
1209
1191
|
_proto.queryFrom = function queryFrom(temporal) {
|
|
1210
1192
|
abstractMethodFail('queryFrom');
|
|
@@ -1213,10 +1195,10 @@ var TemporalQuery = function (_Enum) {
|
|
|
1213
1195
|
}(Enum);
|
|
1214
1196
|
function createTemporalQuery(name, queryFromFunction) {
|
|
1215
1197
|
var ExtendedTemporalQuery = function (_TemporalQuery) {
|
|
1216
|
-
_inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
|
|
1217
1198
|
function ExtendedTemporalQuery() {
|
|
1218
1199
|
return _TemporalQuery.apply(this, arguments) || this;
|
|
1219
1200
|
}
|
|
1201
|
+
_inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
|
|
1220
1202
|
return ExtendedTemporalQuery;
|
|
1221
1203
|
}(TemporalQuery);
|
|
1222
1204
|
ExtendedTemporalQuery.prototype.queryFrom = queryFromFunction;
|
|
@@ -1224,7 +1206,6 @@ function createTemporalQuery(name, queryFromFunction) {
|
|
|
1224
1206
|
}
|
|
1225
1207
|
|
|
1226
1208
|
var DayOfWeek = function (_TemporalAccessor) {
|
|
1227
|
-
_inheritsLoose(DayOfWeek, _TemporalAccessor);
|
|
1228
1209
|
function DayOfWeek(ordinal, name) {
|
|
1229
1210
|
var _this;
|
|
1230
1211
|
_this = _TemporalAccessor.call(this) || this;
|
|
@@ -1232,6 +1213,7 @@ var DayOfWeek = function (_TemporalAccessor) {
|
|
|
1232
1213
|
_this._name = name;
|
|
1233
1214
|
return _this;
|
|
1234
1215
|
}
|
|
1216
|
+
_inheritsLoose(DayOfWeek, _TemporalAccessor);
|
|
1235
1217
|
var _proto = DayOfWeek.prototype;
|
|
1236
1218
|
_proto.ordinal = function ordinal() {
|
|
1237
1219
|
return this._ordinal;
|
|
@@ -1358,7 +1340,6 @@ function _init$j() {
|
|
|
1358
1340
|
}
|
|
1359
1341
|
|
|
1360
1342
|
var Month = function (_TemporalAccessor) {
|
|
1361
|
-
_inheritsLoose(Month, _TemporalAccessor);
|
|
1362
1343
|
function Month(value, name) {
|
|
1363
1344
|
var _this;
|
|
1364
1345
|
_this = _TemporalAccessor.call(this) || this;
|
|
@@ -1366,6 +1347,7 @@ var Month = function (_TemporalAccessor) {
|
|
|
1366
1347
|
_this._name = name;
|
|
1367
1348
|
return _this;
|
|
1368
1349
|
}
|
|
1350
|
+
_inheritsLoose(Month, _TemporalAccessor);
|
|
1369
1351
|
var _proto = Month.prototype;
|
|
1370
1352
|
_proto.value = function value() {
|
|
1371
1353
|
return this._value;
|
|
@@ -1603,7 +1585,6 @@ function _init$i() {
|
|
|
1603
1585
|
|
|
1604
1586
|
var PATTERN = /([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/;
|
|
1605
1587
|
var Period = function (_TemporalAmount) {
|
|
1606
|
-
_inheritsLoose(Period, _TemporalAmount);
|
|
1607
1588
|
function Period(years, months, days) {
|
|
1608
1589
|
var _this;
|
|
1609
1590
|
_this = _TemporalAmount.call(this) || this;
|
|
@@ -1615,7 +1596,7 @@ var Period = function (_TemporalAmount) {
|
|
|
1615
1596
|
_this._years = _years;
|
|
1616
1597
|
_this._months = _months;
|
|
1617
1598
|
_this._days = _days;
|
|
1618
|
-
Period.ZERO =
|
|
1599
|
+
Period.ZERO = _this;
|
|
1619
1600
|
}
|
|
1620
1601
|
return Period.ZERO || _assertThisInitialized(_this);
|
|
1621
1602
|
}
|
|
@@ -1624,6 +1605,7 @@ var Period = function (_TemporalAmount) {
|
|
|
1624
1605
|
_this._days = _days;
|
|
1625
1606
|
return _this;
|
|
1626
1607
|
}
|
|
1608
|
+
_inheritsLoose(Period, _TemporalAmount);
|
|
1627
1609
|
Period.ofYears = function ofYears(years) {
|
|
1628
1610
|
return Period.create(years, 0, 0);
|
|
1629
1611
|
};
|
|
@@ -1967,10 +1949,10 @@ function _init$h() {
|
|
|
1967
1949
|
}();
|
|
1968
1950
|
|
|
1969
1951
|
var ResolverStyle = function (_Enum) {
|
|
1970
|
-
_inheritsLoose(ResolverStyle, _Enum);
|
|
1971
1952
|
function ResolverStyle() {
|
|
1972
1953
|
return _Enum.apply(this, arguments) || this;
|
|
1973
1954
|
}
|
|
1955
|
+
_inheritsLoose(ResolverStyle, _Enum);
|
|
1974
1956
|
return ResolverStyle;
|
|
1975
1957
|
}(Enum);
|
|
1976
1958
|
ResolverStyle.STRICT = new ResolverStyle('STRICT');
|
|
@@ -1978,10 +1960,10 @@ ResolverStyle.SMART = new ResolverStyle('SMART');
|
|
|
1978
1960
|
ResolverStyle.LENIENT = new ResolverStyle('LENIENT');
|
|
1979
1961
|
|
|
1980
1962
|
var Temporal = function (_TemporalAccessor) {
|
|
1981
|
-
_inheritsLoose(Temporal, _TemporalAccessor);
|
|
1982
1963
|
function Temporal() {
|
|
1983
1964
|
return _TemporalAccessor.apply(this, arguments) || this;
|
|
1984
1965
|
}
|
|
1966
|
+
_inheritsLoose(Temporal, _TemporalAccessor);
|
|
1985
1967
|
var _proto = Temporal.prototype;
|
|
1986
1968
|
_proto.isSupported = function isSupported(fieldOrUnit) {
|
|
1987
1969
|
abstractMethodFail('isSupported');
|
|
@@ -2049,10 +2031,10 @@ if (typeof Symbol !== 'undefined' && Symbol.toPrimitive) {
|
|
|
2049
2031
|
}
|
|
2050
2032
|
|
|
2051
2033
|
var ChronoLocalDate = function (_Temporal) {
|
|
2052
|
-
_inheritsLoose(ChronoLocalDate, _Temporal);
|
|
2053
2034
|
function ChronoLocalDate() {
|
|
2054
2035
|
return _Temporal.apply(this, arguments) || this;
|
|
2055
2036
|
}
|
|
2037
|
+
_inheritsLoose(ChronoLocalDate, _Temporal);
|
|
2056
2038
|
var _proto = ChronoLocalDate.prototype;
|
|
2057
2039
|
_proto.isSupported = function isSupported(fieldOrUnit) {
|
|
2058
2040
|
if (fieldOrUnit instanceof ChronoField) {
|
|
@@ -2234,13 +2216,13 @@ var ZoneRules = function () {
|
|
|
2234
2216
|
return ZoneRules;
|
|
2235
2217
|
}();
|
|
2236
2218
|
var Fixed = function (_ZoneRules) {
|
|
2237
|
-
_inheritsLoose(Fixed, _ZoneRules);
|
|
2238
2219
|
function Fixed(offset) {
|
|
2239
2220
|
var _this;
|
|
2240
2221
|
_this = _ZoneRules.call(this) || this;
|
|
2241
2222
|
_this._offset = offset;
|
|
2242
2223
|
return _this;
|
|
2243
2224
|
}
|
|
2225
|
+
_inheritsLoose(Fixed, _ZoneRules);
|
|
2244
2226
|
var _proto2 = Fixed.prototype;
|
|
2245
2227
|
_proto2.isFixedOffset = function isFixedOffset() {
|
|
2246
2228
|
return true;
|
|
@@ -2302,16 +2284,16 @@ var Fixed = function (_ZoneRules) {
|
|
|
2302
2284
|
var SECONDS_CACHE = {};
|
|
2303
2285
|
var ID_CACHE = {};
|
|
2304
2286
|
var ZoneOffset = function (_ZoneId) {
|
|
2305
|
-
_inheritsLoose(ZoneOffset, _ZoneId);
|
|
2306
2287
|
function ZoneOffset(totalSeconds) {
|
|
2307
2288
|
var _this;
|
|
2308
2289
|
_this = _ZoneId.call(this) || this;
|
|
2309
2290
|
ZoneOffset._validateTotalSeconds(totalSeconds);
|
|
2310
2291
|
_this._totalSeconds = MathUtil.safeToInt(totalSeconds);
|
|
2311
|
-
_this._rules = ZoneRules.of(
|
|
2292
|
+
_this._rules = ZoneRules.of(_this);
|
|
2312
2293
|
_this._id = ZoneOffset._buildId(totalSeconds);
|
|
2313
2294
|
return _this;
|
|
2314
2295
|
}
|
|
2296
|
+
_inheritsLoose(ZoneOffset, _ZoneId);
|
|
2315
2297
|
var _proto = ZoneOffset.prototype;
|
|
2316
2298
|
_proto.totalSeconds = function totalSeconds() {
|
|
2317
2299
|
return this._totalSeconds;
|
|
@@ -2507,12 +2489,6 @@ function _init$g() {
|
|
|
2507
2489
|
}
|
|
2508
2490
|
|
|
2509
2491
|
var DateTimeBuilder = function (_TemporalAccessor) {
|
|
2510
|
-
_inheritsLoose(DateTimeBuilder, _TemporalAccessor);
|
|
2511
|
-
DateTimeBuilder.create = function create(field, value) {
|
|
2512
|
-
var dtb = new DateTimeBuilder();
|
|
2513
|
-
dtb._addFieldValue(field, value);
|
|
2514
|
-
return dtb;
|
|
2515
|
-
};
|
|
2516
2492
|
function DateTimeBuilder() {
|
|
2517
2493
|
var _this;
|
|
2518
2494
|
_this = _TemporalAccessor.call(this) || this;
|
|
@@ -2525,6 +2501,12 @@ var DateTimeBuilder = function (_TemporalAccessor) {
|
|
|
2525
2501
|
_this.excessDays = null;
|
|
2526
2502
|
return _this;
|
|
2527
2503
|
}
|
|
2504
|
+
_inheritsLoose(DateTimeBuilder, _TemporalAccessor);
|
|
2505
|
+
DateTimeBuilder.create = function create(field, value) {
|
|
2506
|
+
var dtb = new DateTimeBuilder();
|
|
2507
|
+
dtb._addFieldValue(field, value);
|
|
2508
|
+
return dtb;
|
|
2509
|
+
};
|
|
2528
2510
|
var _proto = DateTimeBuilder.prototype;
|
|
2529
2511
|
_proto.getFieldValue0 = function getFieldValue0(field) {
|
|
2530
2512
|
return this.fieldValues.get(field);
|
|
@@ -2962,7 +2944,6 @@ var DateTimeParseContext = function () {
|
|
|
2962
2944
|
return DateTimeParseContext;
|
|
2963
2945
|
}();
|
|
2964
2946
|
var Parsed = function (_Temporal) {
|
|
2965
|
-
_inheritsLoose(Parsed, _Temporal);
|
|
2966
2947
|
function Parsed(dateTimeParseContext) {
|
|
2967
2948
|
var _this;
|
|
2968
2949
|
_this = _Temporal.call(this) || this;
|
|
@@ -2973,6 +2954,7 @@ var Parsed = function (_Temporal) {
|
|
|
2973
2954
|
_this.dateTimeParseContext = dateTimeParseContext;
|
|
2974
2955
|
return _this;
|
|
2975
2956
|
}
|
|
2957
|
+
_inheritsLoose(Parsed, _Temporal);
|
|
2976
2958
|
var _proto2 = Parsed.prototype;
|
|
2977
2959
|
_proto2.copy = function copy() {
|
|
2978
2960
|
var cloned = new Parsed();
|
|
@@ -3086,10 +3068,10 @@ var DateTimePrintContext = function () {
|
|
|
3086
3068
|
var IsoFields = {};
|
|
3087
3069
|
var QUARTER_DAYS = [0, 90, 181, 273, 0, 91, 182, 274];
|
|
3088
3070
|
var Field = function (_TemporalField) {
|
|
3089
|
-
_inheritsLoose(Field, _TemporalField);
|
|
3090
3071
|
function Field() {
|
|
3091
3072
|
return _TemporalField.apply(this, arguments) || this;
|
|
3092
3073
|
}
|
|
3074
|
+
_inheritsLoose(Field, _TemporalField);
|
|
3093
3075
|
var _proto = Field.prototype;
|
|
3094
3076
|
_proto.isDateBased = function isDateBased() {
|
|
3095
3077
|
return true;
|
|
@@ -3161,10 +3143,10 @@ var Field = function (_TemporalField) {
|
|
|
3161
3143
|
return Field;
|
|
3162
3144
|
}(TemporalField);
|
|
3163
3145
|
var DAY_OF_QUARTER_FIELD = function (_Field) {
|
|
3164
|
-
_inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
|
|
3165
3146
|
function DAY_OF_QUARTER_FIELD() {
|
|
3166
3147
|
return _Field.apply(this, arguments) || this;
|
|
3167
3148
|
}
|
|
3149
|
+
_inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
|
|
3168
3150
|
var _proto2 = DAY_OF_QUARTER_FIELD.prototype;
|
|
3169
3151
|
_proto2.toString = function toString() {
|
|
3170
3152
|
return 'DayOfQuarter';
|
|
@@ -3247,10 +3229,10 @@ var DAY_OF_QUARTER_FIELD = function (_Field) {
|
|
|
3247
3229
|
return DAY_OF_QUARTER_FIELD;
|
|
3248
3230
|
}(Field);
|
|
3249
3231
|
var QUARTER_OF_YEAR_FIELD = function (_Field2) {
|
|
3250
|
-
_inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
|
|
3251
3232
|
function QUARTER_OF_YEAR_FIELD() {
|
|
3252
3233
|
return _Field2.apply(this, arguments) || this;
|
|
3253
3234
|
}
|
|
3235
|
+
_inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
|
|
3254
3236
|
var _proto3 = QUARTER_OF_YEAR_FIELD.prototype;
|
|
3255
3237
|
_proto3.toString = function toString() {
|
|
3256
3238
|
return 'QuarterOfYear';
|
|
@@ -3285,10 +3267,10 @@ var QUARTER_OF_YEAR_FIELD = function (_Field2) {
|
|
|
3285
3267
|
return QUARTER_OF_YEAR_FIELD;
|
|
3286
3268
|
}(Field);
|
|
3287
3269
|
var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
|
|
3288
|
-
_inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
|
|
3289
3270
|
function WEEK_OF_WEEK_BASED_YEAR_FIELD() {
|
|
3290
3271
|
return _Field3.apply(this, arguments) || this;
|
|
3291
3272
|
}
|
|
3273
|
+
_inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
|
|
3292
3274
|
var _proto4 = WEEK_OF_WEEK_BASED_YEAR_FIELD.prototype;
|
|
3293
3275
|
_proto4.toString = function toString() {
|
|
3294
3276
|
return 'WeekOfWeekBasedYear';
|
|
@@ -3363,10 +3345,10 @@ var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
|
|
|
3363
3345
|
return WEEK_OF_WEEK_BASED_YEAR_FIELD;
|
|
3364
3346
|
}(Field);
|
|
3365
3347
|
var WEEK_BASED_YEAR_FIELD = function (_Field4) {
|
|
3366
|
-
_inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
|
|
3367
3348
|
function WEEK_BASED_YEAR_FIELD() {
|
|
3368
3349
|
return _Field4.apply(this, arguments) || this;
|
|
3369
3350
|
}
|
|
3351
|
+
_inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
|
|
3370
3352
|
var _proto5 = WEEK_BASED_YEAR_FIELD.prototype;
|
|
3371
3353
|
_proto5.toString = function toString() {
|
|
3372
3354
|
return 'WeekBasedYear';
|
|
@@ -3411,7 +3393,6 @@ var WEEK_BASED_YEAR_FIELD = function (_Field4) {
|
|
|
3411
3393
|
return WEEK_BASED_YEAR_FIELD;
|
|
3412
3394
|
}(Field);
|
|
3413
3395
|
var Unit = function (_TemporalUnit) {
|
|
3414
|
-
_inheritsLoose(Unit, _TemporalUnit);
|
|
3415
3396
|
function Unit(name, estimatedDuration) {
|
|
3416
3397
|
var _this;
|
|
3417
3398
|
_this = _TemporalUnit.call(this) || this;
|
|
@@ -3419,6 +3400,7 @@ var Unit = function (_TemporalUnit) {
|
|
|
3419
3400
|
_this._duration = estimatedDuration;
|
|
3420
3401
|
return _this;
|
|
3421
3402
|
}
|
|
3403
|
+
_inheritsLoose(Unit, _TemporalUnit);
|
|
3422
3404
|
var _proto6 = Unit.prototype;
|
|
3423
3405
|
_proto6.duration = function duration() {
|
|
3424
3406
|
return this._duration;
|
|
@@ -3582,10 +3564,10 @@ var DecimalStyle = function () {
|
|
|
3582
3564
|
DecimalStyle.STANDARD = new DecimalStyle('0', '+', '-', '.');
|
|
3583
3565
|
|
|
3584
3566
|
var SignStyle = function (_Enum) {
|
|
3585
|
-
_inheritsLoose(SignStyle, _Enum);
|
|
3586
3567
|
function SignStyle() {
|
|
3587
3568
|
return _Enum.apply(this, arguments) || this;
|
|
3588
3569
|
}
|
|
3570
|
+
_inheritsLoose(SignStyle, _Enum);
|
|
3589
3571
|
var _proto = SignStyle.prototype;
|
|
3590
3572
|
_proto.parse = function parse(positive, strict, fixedWidth) {
|
|
3591
3573
|
switch (this) {
|
|
@@ -3607,10 +3589,10 @@ SignStyle.EXCEEDS_PAD = new SignStyle('EXCEEDS_PAD');
|
|
|
3607
3589
|
SignStyle.NOT_NEGATIVE = new SignStyle('NOT_NEGATIVE');
|
|
3608
3590
|
|
|
3609
3591
|
var TextStyle = function (_Enum) {
|
|
3610
|
-
_inheritsLoose(TextStyle, _Enum);
|
|
3611
3592
|
function TextStyle() {
|
|
3612
3593
|
return _Enum.apply(this, arguments) || this;
|
|
3613
3594
|
}
|
|
3595
|
+
_inheritsLoose(TextStyle, _Enum);
|
|
3614
3596
|
var _proto = TextStyle.prototype;
|
|
3615
3597
|
_proto.isStandalone = function isStandalone() {
|
|
3616
3598
|
switch (this) {
|
|
@@ -4071,7 +4053,6 @@ var NumberPrinterParser = function () {
|
|
|
4071
4053
|
return NumberPrinterParser;
|
|
4072
4054
|
}();
|
|
4073
4055
|
var ReducedPrinterParser = function (_NumberPrinterParser) {
|
|
4074
|
-
_inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
|
|
4075
4056
|
function ReducedPrinterParser(field, width, maxWidth, baseValue, baseDate) {
|
|
4076
4057
|
var _this;
|
|
4077
4058
|
_this = _NumberPrinterParser.call(this, field, width, maxWidth, SignStyle.NOT_NEGATIVE) || this;
|
|
@@ -4096,6 +4077,7 @@ var ReducedPrinterParser = function (_NumberPrinterParser) {
|
|
|
4096
4077
|
_this._baseDate = baseDate;
|
|
4097
4078
|
return _this;
|
|
4098
4079
|
}
|
|
4080
|
+
_inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
|
|
4099
4081
|
var _proto2 = ReducedPrinterParser.prototype;
|
|
4100
4082
|
_proto2._getValue = function _getValue(context, value) {
|
|
4101
4083
|
var absValue = Math.abs(value);
|
|
@@ -4332,10 +4314,10 @@ var PadPrinterParserDecorator = function () {
|
|
|
4332
4314
|
}();
|
|
4333
4315
|
|
|
4334
4316
|
var SettingsParser = function (_Enum) {
|
|
4335
|
-
_inheritsLoose(SettingsParser, _Enum);
|
|
4336
4317
|
function SettingsParser() {
|
|
4337
4318
|
return _Enum.apply(this, arguments) || this;
|
|
4338
4319
|
}
|
|
4320
|
+
_inheritsLoose(SettingsParser, _Enum);
|
|
4339
4321
|
var _proto = SettingsParser.prototype;
|
|
4340
4322
|
_proto.print = function print() {
|
|
4341
4323
|
return true;
|
|
@@ -4424,11 +4406,6 @@ var ZoneRulesProvider = function () {
|
|
|
4424
4406
|
}();
|
|
4425
4407
|
|
|
4426
4408
|
var ZoneRegion = function (_ZoneId) {
|
|
4427
|
-
_inheritsLoose(ZoneRegion, _ZoneId);
|
|
4428
|
-
ZoneRegion.ofId = function ofId(zoneId) {
|
|
4429
|
-
var rules = ZoneRulesProvider.getRules(zoneId);
|
|
4430
|
-
return new ZoneRegion(zoneId, rules);
|
|
4431
|
-
};
|
|
4432
4409
|
function ZoneRegion(id, rules) {
|
|
4433
4410
|
var _this;
|
|
4434
4411
|
_this = _ZoneId.call(this) || this;
|
|
@@ -4436,6 +4413,11 @@ var ZoneRegion = function (_ZoneId) {
|
|
|
4436
4413
|
_this._rules = rules;
|
|
4437
4414
|
return _this;
|
|
4438
4415
|
}
|
|
4416
|
+
_inheritsLoose(ZoneRegion, _ZoneId);
|
|
4417
|
+
ZoneRegion.ofId = function ofId(zoneId) {
|
|
4418
|
+
var rules = ZoneRulesProvider.getRules(zoneId);
|
|
4419
|
+
return new ZoneRegion(zoneId, rules);
|
|
4420
|
+
};
|
|
4439
4421
|
var _proto = ZoneRegion.prototype;
|
|
4440
4422
|
_proto.id = function id() {
|
|
4441
4423
|
return this._id;
|
|
@@ -4549,6 +4531,10 @@ var ZoneIdPrinterParser = function () {
|
|
|
4549
4531
|
return ZoneIdPrinterParser;
|
|
4550
4532
|
}();
|
|
4551
4533
|
var ZoneIdTree = function () {
|
|
4534
|
+
function ZoneIdTree(size, treeMap) {
|
|
4535
|
+
this.size = size;
|
|
4536
|
+
this.treeMap = treeMap;
|
|
4537
|
+
}
|
|
4552
4538
|
ZoneIdTree.createTreeMap = function createTreeMap(availableZoneIds) {
|
|
4553
4539
|
var sortedZoneIds = availableZoneIds.sort(function (a, b) {
|
|
4554
4540
|
return a.length - b.length;
|
|
@@ -4559,10 +4545,6 @@ var ZoneIdTree = function () {
|
|
|
4559
4545
|
}
|
|
4560
4546
|
return new ZoneIdTree(sortedZoneIds.length, treeMap);
|
|
4561
4547
|
};
|
|
4562
|
-
function ZoneIdTree(size, treeMap) {
|
|
4563
|
-
this.size = size;
|
|
4564
|
-
this.treeMap = treeMap;
|
|
4565
|
-
}
|
|
4566
4548
|
return ZoneIdTree;
|
|
4567
4549
|
}();
|
|
4568
4550
|
var ZoneIdTreeMap = function () {
|
|
@@ -5363,15 +5345,6 @@ function _init$e() {
|
|
|
5363
5345
|
*/
|
|
5364
5346
|
|
|
5365
5347
|
var DateTimeFormatter = function () {
|
|
5366
|
-
DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
|
|
5367
|
-
return DateTimeFormatter.PARSED_EXCESS_DAYS;
|
|
5368
|
-
};
|
|
5369
|
-
DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
|
|
5370
|
-
return DateTimeFormatter.PARSED_LEAP_SECOND;
|
|
5371
|
-
};
|
|
5372
|
-
DateTimeFormatter.ofPattern = function ofPattern(pattern) {
|
|
5373
|
-
return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
|
|
5374
|
-
};
|
|
5375
5348
|
function DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone) {
|
|
5376
5349
|
if (chrono === void 0) {
|
|
5377
5350
|
chrono = IsoChronology.INSTANCE;
|
|
@@ -5387,6 +5360,15 @@ var DateTimeFormatter = function () {
|
|
|
5387
5360
|
this._chrono = chrono;
|
|
5388
5361
|
this._zone = zone;
|
|
5389
5362
|
}
|
|
5363
|
+
DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
|
|
5364
|
+
return DateTimeFormatter.PARSED_EXCESS_DAYS;
|
|
5365
|
+
};
|
|
5366
|
+
DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
|
|
5367
|
+
return DateTimeFormatter.PARSED_LEAP_SECOND;
|
|
5368
|
+
};
|
|
5369
|
+
DateTimeFormatter.ofPattern = function ofPattern(pattern) {
|
|
5370
|
+
return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
|
|
5371
|
+
};
|
|
5390
5372
|
var _proto = DateTimeFormatter.prototype;
|
|
5391
5373
|
_proto.locale = function locale() {
|
|
5392
5374
|
return this._locale;
|
|
@@ -5541,6 +5523,13 @@ function _init$d() {
|
|
|
5541
5523
|
}
|
|
5542
5524
|
|
|
5543
5525
|
var MonthDay = function (_TemporalAccessor) {
|
|
5526
|
+
function MonthDay(month, dayOfMonth) {
|
|
5527
|
+
var _this;
|
|
5528
|
+
_this = _TemporalAccessor.call(this) || this;
|
|
5529
|
+
_this._month = MathUtil.safeToInt(month);
|
|
5530
|
+
_this._day = MathUtil.safeToInt(dayOfMonth);
|
|
5531
|
+
return _this;
|
|
5532
|
+
}
|
|
5544
5533
|
_inheritsLoose(MonthDay, _TemporalAccessor);
|
|
5545
5534
|
MonthDay.now = function now(zoneIdOrClock) {
|
|
5546
5535
|
if (arguments.length === 0) {
|
|
@@ -5611,13 +5600,6 @@ var MonthDay = function (_TemporalAccessor) {
|
|
|
5611
5600
|
requireInstance(formatter, DateTimeFormatter, 'formatter');
|
|
5612
5601
|
return formatter.parse(text, MonthDay.FROM);
|
|
5613
5602
|
};
|
|
5614
|
-
function MonthDay(month, dayOfMonth) {
|
|
5615
|
-
var _this;
|
|
5616
|
-
_this = _TemporalAccessor.call(this) || this;
|
|
5617
|
-
_this._month = MathUtil.safeToInt(month);
|
|
5618
|
-
_this._day = MathUtil.safeToInt(dayOfMonth);
|
|
5619
|
-
return _this;
|
|
5620
|
-
}
|
|
5621
5603
|
var _proto = MonthDay.prototype;
|
|
5622
5604
|
_proto.monthValue = function monthValue() {
|
|
5623
5605
|
return this._month;
|
|
@@ -5745,6 +5727,13 @@ function _init$c() {
|
|
|
5745
5727
|
}
|
|
5746
5728
|
|
|
5747
5729
|
var YearMonth = function (_Temporal) {
|
|
5730
|
+
function YearMonth(year, month) {
|
|
5731
|
+
var _this;
|
|
5732
|
+
_this = _Temporal.call(this) || this;
|
|
5733
|
+
_this._year = MathUtil.safeToInt(year);
|
|
5734
|
+
_this._month = MathUtil.safeToInt(month);
|
|
5735
|
+
return _this;
|
|
5736
|
+
}
|
|
5748
5737
|
_inheritsLoose(YearMonth, _Temporal);
|
|
5749
5738
|
YearMonth.now = function now(zoneIdOrClock) {
|
|
5750
5739
|
if (arguments.length === 0) {
|
|
@@ -5809,13 +5798,6 @@ var YearMonth = function (_Temporal) {
|
|
|
5809
5798
|
requireNonNull(formatter, 'formatter');
|
|
5810
5799
|
return formatter.parse(text, YearMonth.FROM);
|
|
5811
5800
|
};
|
|
5812
|
-
function YearMonth(year, month) {
|
|
5813
|
-
var _this;
|
|
5814
|
-
_this = _Temporal.call(this) || this;
|
|
5815
|
-
_this._year = MathUtil.safeToInt(year);
|
|
5816
|
-
_this._month = MathUtil.safeToInt(month);
|
|
5817
|
-
return _this;
|
|
5818
|
-
}
|
|
5819
5801
|
var _proto = YearMonth.prototype;
|
|
5820
5802
|
_proto.isSupported = function isSupported(fieldOrUnit) {
|
|
5821
5803
|
if (arguments.length === 1 && fieldOrUnit instanceof TemporalField) {
|
|
@@ -6069,13 +6051,13 @@ function _init$b() {
|
|
|
6069
6051
|
}
|
|
6070
6052
|
|
|
6071
6053
|
var Year = function (_Temporal) {
|
|
6072
|
-
_inheritsLoose(Year, _Temporal);
|
|
6073
6054
|
function Year(value) {
|
|
6074
6055
|
var _this;
|
|
6075
6056
|
_this = _Temporal.call(this) || this;
|
|
6076
6057
|
_this._year = MathUtil.safeToInt(value);
|
|
6077
6058
|
return _this;
|
|
6078
6059
|
}
|
|
6060
|
+
_inheritsLoose(Year, _Temporal);
|
|
6079
6061
|
var _proto = Year.prototype;
|
|
6080
6062
|
_proto.value = function value() {
|
|
6081
6063
|
return this._year;
|
|
@@ -6416,13 +6398,13 @@ var TemporalAdjusters = function () {
|
|
|
6416
6398
|
return TemporalAdjusters;
|
|
6417
6399
|
}();
|
|
6418
6400
|
var Impl = function (_TemporalAdjuster) {
|
|
6419
|
-
_inheritsLoose(Impl, _TemporalAdjuster);
|
|
6420
6401
|
function Impl(ordinal) {
|
|
6421
6402
|
var _this;
|
|
6422
6403
|
_this = _TemporalAdjuster.call(this) || this;
|
|
6423
6404
|
_this._ordinal = ordinal;
|
|
6424
6405
|
return _this;
|
|
6425
6406
|
}
|
|
6407
|
+
_inheritsLoose(Impl, _TemporalAdjuster);
|
|
6426
6408
|
var _proto = Impl.prototype;
|
|
6427
6409
|
_proto.adjustInto = function adjustInto(temporal) {
|
|
6428
6410
|
switch (this._ordinal) {
|
|
@@ -6450,7 +6432,6 @@ Impl.FIRST_DAY_OF_YEAR = new Impl(3);
|
|
|
6450
6432
|
Impl.LAST_DAY_OF_YEAR = new Impl(4);
|
|
6451
6433
|
Impl.FIRST_DAY_OF_NEXT_YEAR = new Impl(5);
|
|
6452
6434
|
var DayOfWeekInMonth = function (_TemporalAdjuster2) {
|
|
6453
|
-
_inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
|
|
6454
6435
|
function DayOfWeekInMonth(ordinal, dow) {
|
|
6455
6436
|
var _this2;
|
|
6456
6437
|
_this2 = _TemporalAdjuster2.call(this) || this;
|
|
@@ -6458,6 +6439,7 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
|
|
|
6458
6439
|
_this2._dowValue = dow.value();
|
|
6459
6440
|
return _this2;
|
|
6460
6441
|
}
|
|
6442
|
+
_inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
|
|
6461
6443
|
var _proto2 = DayOfWeekInMonth.prototype;
|
|
6462
6444
|
_proto2.adjustInto = function adjustInto(temporal) {
|
|
6463
6445
|
if (this._ordinal >= 0) {
|
|
@@ -6478,7 +6460,6 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
|
|
|
6478
6460
|
return DayOfWeekInMonth;
|
|
6479
6461
|
}(TemporalAdjuster);
|
|
6480
6462
|
var RelativeDayOfWeek = function (_TemporalAdjuster3) {
|
|
6481
|
-
_inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
|
|
6482
6463
|
function RelativeDayOfWeek(relative, dayOfWeek) {
|
|
6483
6464
|
var _this3;
|
|
6484
6465
|
_this3 = _TemporalAdjuster3.call(this) || this;
|
|
@@ -6487,6 +6468,7 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
|
|
|
6487
6468
|
_this3._dowValue = dayOfWeek.value();
|
|
6488
6469
|
return _this3;
|
|
6489
6470
|
}
|
|
6471
|
+
_inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
|
|
6490
6472
|
var _proto3 = RelativeDayOfWeek.prototype;
|
|
6491
6473
|
_proto3.adjustInto = function adjustInto(temporal) {
|
|
6492
6474
|
var calDow = temporal.get(ChronoField.DAY_OF_WEEK);
|
|
@@ -6505,10 +6487,10 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
|
|
|
6505
6487
|
}(TemporalAdjuster);
|
|
6506
6488
|
|
|
6507
6489
|
var IsoChronology = function (_Enum) {
|
|
6508
|
-
_inheritsLoose(IsoChronology, _Enum);
|
|
6509
6490
|
function IsoChronology() {
|
|
6510
6491
|
return _Enum.apply(this, arguments) || this;
|
|
6511
6492
|
}
|
|
6493
|
+
_inheritsLoose(IsoChronology, _Enum);
|
|
6512
6494
|
IsoChronology.isLeapYear = function isLeapYear(prolepticYear) {
|
|
6513
6495
|
return (prolepticYear & 3) === 0 && (prolepticYear % 100 !== 0 || prolepticYear % 400 === 0);
|
|
6514
6496
|
};
|
|
@@ -6638,6 +6620,17 @@ function _init$9() {
|
|
|
6638
6620
|
}
|
|
6639
6621
|
|
|
6640
6622
|
var OffsetTime = function (_Temporal) {
|
|
6623
|
+
function OffsetTime(time, offset) {
|
|
6624
|
+
var _this;
|
|
6625
|
+
_this = _Temporal.call(this) || this;
|
|
6626
|
+
requireNonNull(time, 'time');
|
|
6627
|
+
requireInstance(time, LocalTime, 'time');
|
|
6628
|
+
requireNonNull(offset, 'offset');
|
|
6629
|
+
requireInstance(offset, ZoneOffset, 'offset');
|
|
6630
|
+
_this._time = time;
|
|
6631
|
+
_this._offset = offset;
|
|
6632
|
+
return _this;
|
|
6633
|
+
}
|
|
6641
6634
|
_inheritsLoose(OffsetTime, _Temporal);
|
|
6642
6635
|
OffsetTime.from = function from(temporal) {
|
|
6643
6636
|
requireNonNull(temporal, 'temporal');
|
|
@@ -6704,17 +6697,6 @@ var OffsetTime = function (_Temporal) {
|
|
|
6704
6697
|
requireNonNull(formatter, 'formatter');
|
|
6705
6698
|
return formatter.parse(text, OffsetTime.FROM);
|
|
6706
6699
|
};
|
|
6707
|
-
function OffsetTime(time, offset) {
|
|
6708
|
-
var _this;
|
|
6709
|
-
_this = _Temporal.call(this) || this;
|
|
6710
|
-
requireNonNull(time, 'time');
|
|
6711
|
-
requireInstance(time, LocalTime, 'time');
|
|
6712
|
-
requireNonNull(offset, 'offset');
|
|
6713
|
-
requireInstance(offset, ZoneOffset, 'offset');
|
|
6714
|
-
_this._time = time;
|
|
6715
|
-
_this._offset = offset;
|
|
6716
|
-
return _this;
|
|
6717
|
-
}
|
|
6718
6700
|
var _proto = OffsetTime.prototype;
|
|
6719
6701
|
_proto.adjustInto = function adjustInto(temporal) {
|
|
6720
6702
|
return temporal.with(ChronoField.NANO_OF_DAY, this._time.toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
|
|
@@ -6965,10 +6947,10 @@ function _init$8() {
|
|
|
6965
6947
|
}
|
|
6966
6948
|
|
|
6967
6949
|
var ChronoZonedDateTime = function (_Temporal) {
|
|
6968
|
-
_inheritsLoose(ChronoZonedDateTime, _Temporal);
|
|
6969
6950
|
function ChronoZonedDateTime() {
|
|
6970
6951
|
return _Temporal.apply(this, arguments) || this;
|
|
6971
6952
|
}
|
|
6953
|
+
_inheritsLoose(ChronoZonedDateTime, _Temporal);
|
|
6972
6954
|
var _proto = ChronoZonedDateTime.prototype;
|
|
6973
6955
|
_proto.query = function query(_query) {
|
|
6974
6956
|
if (_query === TemporalQueries.zoneId() || _query === TemporalQueries.zone()) {
|
|
@@ -7051,6 +7033,17 @@ function strcmp(a, b) {
|
|
|
7051
7033
|
}
|
|
7052
7034
|
|
|
7053
7035
|
var ZonedDateTime = function (_ChronoZonedDateTime) {
|
|
7036
|
+
function ZonedDateTime(dateTime, offset, zone) {
|
|
7037
|
+
var _this;
|
|
7038
|
+
requireNonNull(dateTime, 'dateTime');
|
|
7039
|
+
requireNonNull(offset, 'offset');
|
|
7040
|
+
requireNonNull(zone, 'zone');
|
|
7041
|
+
_this = _ChronoZonedDateTime.call(this) || this;
|
|
7042
|
+
_this._dateTime = dateTime;
|
|
7043
|
+
_this._offset = offset;
|
|
7044
|
+
_this._zone = zone;
|
|
7045
|
+
return _this;
|
|
7046
|
+
}
|
|
7054
7047
|
_inheritsLoose(ZonedDateTime, _ChronoZonedDateTime);
|
|
7055
7048
|
ZonedDateTime.now = function now(clockOrZone) {
|
|
7056
7049
|
var clock;
|
|
@@ -7186,17 +7179,6 @@ var ZonedDateTime = function (_ChronoZonedDateTime) {
|
|
|
7186
7179
|
requireNonNull(formatter, 'formatter');
|
|
7187
7180
|
return formatter.parse(text, ZonedDateTime.FROM);
|
|
7188
7181
|
};
|
|
7189
|
-
function ZonedDateTime(dateTime, offset, zone) {
|
|
7190
|
-
var _this;
|
|
7191
|
-
requireNonNull(dateTime, 'dateTime');
|
|
7192
|
-
requireNonNull(offset, 'offset');
|
|
7193
|
-
requireNonNull(zone, 'zone');
|
|
7194
|
-
_this = _ChronoZonedDateTime.call(this) || this;
|
|
7195
|
-
_this._dateTime = dateTime;
|
|
7196
|
-
_this._offset = offset;
|
|
7197
|
-
_this._zone = zone;
|
|
7198
|
-
return _this;
|
|
7199
|
-
}
|
|
7200
7182
|
var _proto = ZonedDateTime.prototype;
|
|
7201
7183
|
_proto._resolveLocal = function _resolveLocal(newDateTime) {
|
|
7202
7184
|
requireNonNull(newDateTime, 'newDateTime');
|
|
@@ -7497,6 +7479,17 @@ function _init$7() {
|
|
|
7497
7479
|
}
|
|
7498
7480
|
|
|
7499
7481
|
var OffsetDateTime = function (_Temporal) {
|
|
7482
|
+
function OffsetDateTime(dateTime, offset) {
|
|
7483
|
+
var _this;
|
|
7484
|
+
_this = _Temporal.call(this) || this;
|
|
7485
|
+
requireNonNull(dateTime, 'dateTime');
|
|
7486
|
+
requireInstance(dateTime, LocalDateTime, 'dateTime');
|
|
7487
|
+
requireNonNull(offset, 'offset');
|
|
7488
|
+
requireInstance(offset, ZoneOffset, 'offset');
|
|
7489
|
+
_this._dateTime = dateTime;
|
|
7490
|
+
_this._offset = offset;
|
|
7491
|
+
return _this;
|
|
7492
|
+
}
|
|
7500
7493
|
_inheritsLoose(OffsetDateTime, _Temporal);
|
|
7501
7494
|
OffsetDateTime.from = function from(temporal) {
|
|
7502
7495
|
requireNonNull(temporal, 'temporal');
|
|
@@ -7524,8 +7517,8 @@ var OffsetDateTime = function (_Temporal) {
|
|
|
7524
7517
|
if (clockOrZone instanceof ZoneId) {
|
|
7525
7518
|
return OffsetDateTime.now(Clock.system(clockOrZone));
|
|
7526
7519
|
} else if (clockOrZone instanceof Clock) {
|
|
7527
|
-
var
|
|
7528
|
-
return OffsetDateTime.ofInstant(
|
|
7520
|
+
var _now = clockOrZone.instant();
|
|
7521
|
+
return OffsetDateTime.ofInstant(_now, clockOrZone.zone().rules().offset(_now));
|
|
7529
7522
|
} else {
|
|
7530
7523
|
throw new IllegalArgumentException('clockOrZone must be an instance of ZoneId or Clock');
|
|
7531
7524
|
}
|
|
@@ -7578,17 +7571,6 @@ var OffsetDateTime = function (_Temporal) {
|
|
|
7578
7571
|
requireNonNull(formatter, 'formatter');
|
|
7579
7572
|
return formatter.parse(text, OffsetDateTime.FROM);
|
|
7580
7573
|
};
|
|
7581
|
-
function OffsetDateTime(dateTime, offset) {
|
|
7582
|
-
var _this;
|
|
7583
|
-
_this = _Temporal.call(this) || this;
|
|
7584
|
-
requireNonNull(dateTime, 'dateTime');
|
|
7585
|
-
requireInstance(dateTime, LocalDateTime, 'dateTime');
|
|
7586
|
-
requireNonNull(offset, 'offset');
|
|
7587
|
-
requireInstance(offset, ZoneOffset, 'offset');
|
|
7588
|
-
_this._dateTime = dateTime;
|
|
7589
|
-
_this._offset = offset;
|
|
7590
|
-
return _this;
|
|
7591
|
-
}
|
|
7592
7574
|
var _proto = OffsetDateTime.prototype;
|
|
7593
7575
|
_proto.adjustInto = function adjustInto(temporal) {
|
|
7594
7576
|
return temporal.with(ChronoField.EPOCH_DAY, this.toLocalDate().toEpochDay()).with(ChronoField.NANO_OF_DAY, this.toLocalTime().toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
|
|
@@ -7926,6 +7908,21 @@ function _init$6() {
|
|
|
7926
7908
|
var DAYS_PER_CYCLE = 146097;
|
|
7927
7909
|
var DAYS_0000_TO_1970 = DAYS_PER_CYCLE * 5 - (30 * 365 + 7);
|
|
7928
7910
|
var LocalDate = function (_ChronoLocalDate) {
|
|
7911
|
+
function LocalDate(year, month, dayOfMonth) {
|
|
7912
|
+
var _this;
|
|
7913
|
+
_this = _ChronoLocalDate.call(this) || this;
|
|
7914
|
+
requireNonNull(year, 'year');
|
|
7915
|
+
requireNonNull(month, 'month');
|
|
7916
|
+
requireNonNull(dayOfMonth, 'dayOfMonth');
|
|
7917
|
+
if (month instanceof Month) {
|
|
7918
|
+
month = month.value();
|
|
7919
|
+
}
|
|
7920
|
+
_this._year = MathUtil.safeToInt(year);
|
|
7921
|
+
_this._month = MathUtil.safeToInt(month);
|
|
7922
|
+
_this._day = MathUtil.safeToInt(dayOfMonth);
|
|
7923
|
+
LocalDate._validate(_this._year, _this._month, _this._day);
|
|
7924
|
+
return _this;
|
|
7925
|
+
}
|
|
7929
7926
|
_inheritsLoose(LocalDate, _ChronoLocalDate);
|
|
7930
7927
|
LocalDate.now = function now(clockOrZone) {
|
|
7931
7928
|
var clock;
|
|
@@ -8022,21 +8019,6 @@ var LocalDate = function (_ChronoLocalDate) {
|
|
|
8022
8019
|
}
|
|
8023
8020
|
return LocalDate.of(year, month, day);
|
|
8024
8021
|
};
|
|
8025
|
-
function LocalDate(year, month, dayOfMonth) {
|
|
8026
|
-
var _this;
|
|
8027
|
-
_this = _ChronoLocalDate.call(this) || this;
|
|
8028
|
-
requireNonNull(year, 'year');
|
|
8029
|
-
requireNonNull(month, 'month');
|
|
8030
|
-
requireNonNull(dayOfMonth, 'dayOfMonth');
|
|
8031
|
-
if (month instanceof Month) {
|
|
8032
|
-
month = month.value();
|
|
8033
|
-
}
|
|
8034
|
-
_this._year = MathUtil.safeToInt(year);
|
|
8035
|
-
_this._month = MathUtil.safeToInt(month);
|
|
8036
|
-
_this._day = MathUtil.safeToInt(dayOfMonth);
|
|
8037
|
-
LocalDate._validate(_this._year, _this._month, _this._day);
|
|
8038
|
-
return _this;
|
|
8039
|
-
}
|
|
8040
8022
|
LocalDate._validate = function _validate(year, month, dayOfMonth) {
|
|
8041
8023
|
var dom;
|
|
8042
8024
|
ChronoField.YEAR.checkValidValue(year);
|
|
@@ -8535,10 +8517,10 @@ function _init$5() {
|
|
|
8535
8517
|
}
|
|
8536
8518
|
|
|
8537
8519
|
var ChronoLocalDateTime = function (_Temporal) {
|
|
8538
|
-
_inheritsLoose(ChronoLocalDateTime, _Temporal);
|
|
8539
8520
|
function ChronoLocalDateTime() {
|
|
8540
8521
|
return _Temporal.apply(this, arguments) || this;
|
|
8541
8522
|
}
|
|
8523
|
+
_inheritsLoose(ChronoLocalDateTime, _Temporal);
|
|
8542
8524
|
var _proto = ChronoLocalDateTime.prototype;
|
|
8543
8525
|
_proto.chronology = function chronology() {
|
|
8544
8526
|
return this.toLocalDate().chronology();
|
|
@@ -8575,6 +8557,15 @@ var ChronoLocalDateTime = function (_Temporal) {
|
|
|
8575
8557
|
}(Temporal);
|
|
8576
8558
|
|
|
8577
8559
|
var LocalDateTime = function (_ChronoLocalDateTime) {
|
|
8560
|
+
function LocalDateTime(date, time) {
|
|
8561
|
+
var _this;
|
|
8562
|
+
_this = _ChronoLocalDateTime.call(this) || this;
|
|
8563
|
+
requireInstance(date, LocalDate, 'date');
|
|
8564
|
+
requireInstance(time, LocalTime, 'time');
|
|
8565
|
+
_this._date = date;
|
|
8566
|
+
_this._time = time;
|
|
8567
|
+
return _this;
|
|
8568
|
+
}
|
|
8578
8569
|
_inheritsLoose(LocalDateTime, _ChronoLocalDateTime);
|
|
8579
8570
|
LocalDateTime.now = function now(clockOrZone) {
|
|
8580
8571
|
if (clockOrZone == null) {
|
|
@@ -8678,15 +8669,6 @@ var LocalDateTime = function (_ChronoLocalDateTime) {
|
|
|
8678
8669
|
requireNonNull(formatter, 'formatter');
|
|
8679
8670
|
return formatter.parse(text, LocalDateTime.FROM);
|
|
8680
8671
|
};
|
|
8681
|
-
function LocalDateTime(date, time) {
|
|
8682
|
-
var _this;
|
|
8683
|
-
_this = _ChronoLocalDateTime.call(this) || this;
|
|
8684
|
-
requireInstance(date, LocalDate, 'date');
|
|
8685
|
-
requireInstance(time, LocalTime, 'time');
|
|
8686
|
-
_this._date = date;
|
|
8687
|
-
_this._time = time;
|
|
8688
|
-
return _this;
|
|
8689
|
-
}
|
|
8690
8672
|
var _proto = LocalDateTime.prototype;
|
|
8691
8673
|
_proto._withDateTime = function _withDateTime(newDate, newTime) {
|
|
8692
8674
|
if (this._date.equals(newDate) && this._time.equals(newTime)) {
|
|
@@ -9025,6 +9007,42 @@ function _init$4() {
|
|
|
9025
9007
|
}
|
|
9026
9008
|
|
|
9027
9009
|
var LocalTime = function (_Temporal) {
|
|
9010
|
+
function LocalTime(hour, minute, second, nanoOfSecond) {
|
|
9011
|
+
var _this;
|
|
9012
|
+
if (hour === void 0) {
|
|
9013
|
+
hour = 0;
|
|
9014
|
+
}
|
|
9015
|
+
if (minute === void 0) {
|
|
9016
|
+
minute = 0;
|
|
9017
|
+
}
|
|
9018
|
+
if (second === void 0) {
|
|
9019
|
+
second = 0;
|
|
9020
|
+
}
|
|
9021
|
+
if (nanoOfSecond === void 0) {
|
|
9022
|
+
nanoOfSecond = 0;
|
|
9023
|
+
}
|
|
9024
|
+
_this = _Temporal.call(this) || this;
|
|
9025
|
+
var _hour = MathUtil.safeToInt(hour);
|
|
9026
|
+
var _minute = MathUtil.safeToInt(minute);
|
|
9027
|
+
var _second = MathUtil.safeToInt(second);
|
|
9028
|
+
var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
|
|
9029
|
+
LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
|
|
9030
|
+
if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
|
|
9031
|
+
if (!LocalTime.HOURS[_hour]) {
|
|
9032
|
+
_this._hour = _hour;
|
|
9033
|
+
_this._minute = _minute;
|
|
9034
|
+
_this._second = _second;
|
|
9035
|
+
_this._nano = _nanoOfSecond;
|
|
9036
|
+
LocalTime.HOURS[_hour] = _this;
|
|
9037
|
+
}
|
|
9038
|
+
return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
|
|
9039
|
+
}
|
|
9040
|
+
_this._hour = _hour;
|
|
9041
|
+
_this._minute = _minute;
|
|
9042
|
+
_this._second = _second;
|
|
9043
|
+
_this._nano = _nanoOfSecond;
|
|
9044
|
+
return _this;
|
|
9045
|
+
}
|
|
9028
9046
|
_inheritsLoose(LocalTime, _Temporal);
|
|
9029
9047
|
LocalTime.now = function now(clockOrZone) {
|
|
9030
9048
|
if (clockOrZone == null) {
|
|
@@ -9100,42 +9118,6 @@ var LocalTime = function (_Temporal) {
|
|
|
9100
9118
|
requireNonNull(formatter, 'formatter');
|
|
9101
9119
|
return formatter.parse(text, LocalTime.FROM);
|
|
9102
9120
|
};
|
|
9103
|
-
function LocalTime(hour, minute, second, nanoOfSecond) {
|
|
9104
|
-
var _this;
|
|
9105
|
-
if (hour === void 0) {
|
|
9106
|
-
hour = 0;
|
|
9107
|
-
}
|
|
9108
|
-
if (minute === void 0) {
|
|
9109
|
-
minute = 0;
|
|
9110
|
-
}
|
|
9111
|
-
if (second === void 0) {
|
|
9112
|
-
second = 0;
|
|
9113
|
-
}
|
|
9114
|
-
if (nanoOfSecond === void 0) {
|
|
9115
|
-
nanoOfSecond = 0;
|
|
9116
|
-
}
|
|
9117
|
-
_this = _Temporal.call(this) || this;
|
|
9118
|
-
var _hour = MathUtil.safeToInt(hour);
|
|
9119
|
-
var _minute = MathUtil.safeToInt(minute);
|
|
9120
|
-
var _second = MathUtil.safeToInt(second);
|
|
9121
|
-
var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
|
|
9122
|
-
LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
|
|
9123
|
-
if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
|
|
9124
|
-
if (!LocalTime.HOURS[_hour]) {
|
|
9125
|
-
_this._hour = _hour;
|
|
9126
|
-
_this._minute = _minute;
|
|
9127
|
-
_this._second = _second;
|
|
9128
|
-
_this._nano = _nanoOfSecond;
|
|
9129
|
-
LocalTime.HOURS[_hour] = _assertThisInitialized(_this);
|
|
9130
|
-
}
|
|
9131
|
-
return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
|
|
9132
|
-
}
|
|
9133
|
-
_this._hour = _hour;
|
|
9134
|
-
_this._minute = _minute;
|
|
9135
|
-
_this._second = _second;
|
|
9136
|
-
_this._nano = _nanoOfSecond;
|
|
9137
|
-
return _this;
|
|
9138
|
-
}
|
|
9139
9121
|
LocalTime._validate = function _validate(hour, minute, second, nanoOfSecond) {
|
|
9140
9122
|
ChronoField.HOUR_OF_DAY.checkValidValue(hour);
|
|
9141
9123
|
ChronoField.MINUTE_OF_HOUR.checkValidValue(minute);
|
|
@@ -9560,6 +9542,14 @@ LocalTime.NANOS_PER_DAY = LocalTime.NANOS_PER_HOUR * LocalTime.HOURS_PER_DAY;
|
|
|
9560
9542
|
|
|
9561
9543
|
var NANOS_PER_MILLI = 1000000;
|
|
9562
9544
|
var Instant = function (_Temporal) {
|
|
9545
|
+
function Instant(seconds, nanoOfSecond) {
|
|
9546
|
+
var _this;
|
|
9547
|
+
_this = _Temporal.call(this) || this;
|
|
9548
|
+
Instant._validate(seconds, nanoOfSecond);
|
|
9549
|
+
_this._seconds = MathUtil.safeToInt(seconds);
|
|
9550
|
+
_this._nanos = MathUtil.safeToInt(nanoOfSecond);
|
|
9551
|
+
return _this;
|
|
9552
|
+
}
|
|
9563
9553
|
_inheritsLoose(Instant, _Temporal);
|
|
9564
9554
|
Instant.now = function now(clock) {
|
|
9565
9555
|
if (clock === void 0) {
|
|
@@ -9611,14 +9601,6 @@ var Instant = function (_Temporal) {
|
|
|
9611
9601
|
throw new DateTimeException('Instant exceeds minimum or maximum instant');
|
|
9612
9602
|
}
|
|
9613
9603
|
};
|
|
9614
|
-
function Instant(seconds, nanoOfSecond) {
|
|
9615
|
-
var _this;
|
|
9616
|
-
_this = _Temporal.call(this) || this;
|
|
9617
|
-
Instant._validate(seconds, nanoOfSecond);
|
|
9618
|
-
_this._seconds = MathUtil.safeToInt(seconds);
|
|
9619
|
-
_this._nanos = MathUtil.safeToInt(nanoOfSecond);
|
|
9620
|
-
return _this;
|
|
9621
|
-
}
|
|
9622
9604
|
var _proto = Instant.prototype;
|
|
9623
9605
|
_proto.isSupported = function isSupported(fieldOrUnit) {
|
|
9624
9606
|
if (fieldOrUnit instanceof ChronoField) {
|
|
@@ -9911,7 +9893,6 @@ var Clock = function () {
|
|
|
9911
9893
|
return Clock;
|
|
9912
9894
|
}();
|
|
9913
9895
|
var SystemClock = function (_Clock) {
|
|
9914
|
-
_inheritsLoose(SystemClock, _Clock);
|
|
9915
9896
|
function SystemClock(zone) {
|
|
9916
9897
|
var _this;
|
|
9917
9898
|
requireNonNull(zone, 'zone');
|
|
@@ -9919,6 +9900,7 @@ var SystemClock = function (_Clock) {
|
|
|
9919
9900
|
_this._zone = zone;
|
|
9920
9901
|
return _this;
|
|
9921
9902
|
}
|
|
9903
|
+
_inheritsLoose(SystemClock, _Clock);
|
|
9922
9904
|
var _proto2 = SystemClock.prototype;
|
|
9923
9905
|
_proto2.zone = function zone() {
|
|
9924
9906
|
return this._zone;
|
|
@@ -9947,7 +9929,6 @@ var SystemClock = function (_Clock) {
|
|
|
9947
9929
|
return SystemClock;
|
|
9948
9930
|
}(Clock);
|
|
9949
9931
|
var FixedClock = function (_Clock2) {
|
|
9950
|
-
_inheritsLoose(FixedClock, _Clock2);
|
|
9951
9932
|
function FixedClock(fixedInstant, zoneId) {
|
|
9952
9933
|
var _this2;
|
|
9953
9934
|
_this2 = _Clock2.call(this) || this;
|
|
@@ -9955,6 +9936,7 @@ var FixedClock = function (_Clock2) {
|
|
|
9955
9936
|
_this2._zoneId = zoneId;
|
|
9956
9937
|
return _this2;
|
|
9957
9938
|
}
|
|
9939
|
+
_inheritsLoose(FixedClock, _Clock2);
|
|
9958
9940
|
var _proto3 = FixedClock.prototype;
|
|
9959
9941
|
_proto3.instant = function instant() {
|
|
9960
9942
|
return this._instant;
|
|
@@ -9983,7 +9965,6 @@ var FixedClock = function (_Clock2) {
|
|
|
9983
9965
|
return FixedClock;
|
|
9984
9966
|
}(Clock);
|
|
9985
9967
|
var OffsetClock = function (_Clock3) {
|
|
9986
|
-
_inheritsLoose(OffsetClock, _Clock3);
|
|
9987
9968
|
function OffsetClock(baseClock, offset) {
|
|
9988
9969
|
var _this3;
|
|
9989
9970
|
_this3 = _Clock3.call(this) || this;
|
|
@@ -9991,6 +9972,7 @@ var OffsetClock = function (_Clock3) {
|
|
|
9991
9972
|
_this3._offset = offset;
|
|
9992
9973
|
return _this3;
|
|
9993
9974
|
}
|
|
9975
|
+
_inheritsLoose(OffsetClock, _Clock3);
|
|
9994
9976
|
var _proto4 = OffsetClock.prototype;
|
|
9995
9977
|
_proto4.zone = function zone() {
|
|
9996
9978
|
return this._baseClock.zone();
|
|
@@ -10026,9 +10008,6 @@ var OffsetClock = function (_Clock3) {
|
|
|
10026
10008
|
*/
|
|
10027
10009
|
|
|
10028
10010
|
var ZoneOffsetTransition = function () {
|
|
10029
|
-
ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
|
|
10030
|
-
return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
|
|
10031
|
-
};
|
|
10032
10011
|
function ZoneOffsetTransition(transition, offsetBefore, offsetAfter) {
|
|
10033
10012
|
requireNonNull(transition, 'transition');
|
|
10034
10013
|
requireNonNull(offsetBefore, 'offsetBefore');
|
|
@@ -10047,6 +10026,9 @@ var ZoneOffsetTransition = function () {
|
|
|
10047
10026
|
this._offsetBefore = offsetBefore;
|
|
10048
10027
|
this._offsetAfter = offsetAfter;
|
|
10049
10028
|
}
|
|
10029
|
+
ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
|
|
10030
|
+
return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
|
|
10031
|
+
};
|
|
10050
10032
|
var _proto = ZoneOffsetTransition.prototype;
|
|
10051
10033
|
_proto.instant = function instant() {
|
|
10052
10034
|
return this._transition.toInstant(this._offsetBefore);
|
|
@@ -10151,10 +10133,10 @@ function _init$1() {
|
|
|
10151
10133
|
}
|
|
10152
10134
|
|
|
10153
10135
|
var SystemDefaultZoneRules = function (_ZoneRules) {
|
|
10154
|
-
_inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
|
|
10155
10136
|
function SystemDefaultZoneRules() {
|
|
10156
10137
|
return _ZoneRules.apply(this, arguments) || this;
|
|
10157
10138
|
}
|
|
10139
|
+
_inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
|
|
10158
10140
|
var _proto = SystemDefaultZoneRules.prototype;
|
|
10159
10141
|
_proto.isFixedOffset = function isFixedOffset() {
|
|
10160
10142
|
return false;
|
|
@@ -10221,13 +10203,13 @@ var SystemDefaultZoneRules = function (_ZoneRules) {
|
|
|
10221
10203
|
}(ZoneRules);
|
|
10222
10204
|
|
|
10223
10205
|
var SystemDefaultZoneId = function (_ZoneId) {
|
|
10224
|
-
_inheritsLoose(SystemDefaultZoneId, _ZoneId);
|
|
10225
10206
|
function SystemDefaultZoneId() {
|
|
10226
10207
|
var _this;
|
|
10227
10208
|
_this = _ZoneId.call(this) || this;
|
|
10228
10209
|
_this._rules = new SystemDefaultZoneRules();
|
|
10229
10210
|
return _this;
|
|
10230
10211
|
}
|
|
10212
|
+
_inheritsLoose(SystemDefaultZoneId, _ZoneId);
|
|
10231
10213
|
var _proto = SystemDefaultZoneId.prototype;
|
|
10232
10214
|
_proto.rules = function rules() {
|
|
10233
10215
|
return this._rules;
|
|
@@ -10418,12 +10400,7 @@ function nativeJs(date, zone) {
|
|
|
10418
10400
|
}
|
|
10419
10401
|
requireNonNull(date, 'date');
|
|
10420
10402
|
requireNonNull(zone, 'zone');
|
|
10421
|
-
|
|
10422
|
-
return Instant.ofEpochMilli(date.getTime()).atZone(zone);
|
|
10423
|
-
} else if (typeof date.toDate === 'function' && date.toDate() instanceof Date) {
|
|
10424
|
-
return Instant.ofEpochMilli(date.toDate().getTime()).atZone(zone);
|
|
10425
|
-
}
|
|
10426
|
-
throw new IllegalArgumentException('date must be a javascript Date or a moment instance');
|
|
10403
|
+
return Instant.ofEpochMilli(date.valueOf()).atZone(zone);
|
|
10427
10404
|
}
|
|
10428
10405
|
|
|
10429
10406
|
function bindUse(jsJoda) {
|