@js-joda/core 5.6.5 → 5.7.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/dist/js-joda.cjs.js +15 -3
- package/dist/js-joda.cjs.js.map +1 -1
- package/dist/js-joda.esm.js +15 -3
- package/dist/js-joda.esm.js.map +1 -1
- package/dist/js-joda.js +15 -3
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +2 -2
- package/src/Duration.js +63 -0
- package/src/zone/ZoneRulesProvider.js +5 -3
- package/typings/js-joda.d.ts +4 -0
- package/typings/js-joda.flow.js +4 -0
package/dist/js-joda.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/core - 5.
|
|
1
|
+
//! @version @js-joda/core - 5.7.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)
|
|
@@ -733,6 +733,18 @@ var Duration = function (_TemporalAmount) {
|
|
|
733
733
|
totalNanos = MathUtil.safeAdd(totalNanos, this._nanos);
|
|
734
734
|
return totalNanos;
|
|
735
735
|
};
|
|
736
|
+
_proto.toHoursPart = function toHoursPart() {
|
|
737
|
+
return MathUtil.intMod(this.toHours(), LocalTime.HOURS_PER_DAY);
|
|
738
|
+
};
|
|
739
|
+
_proto.toMinutesPart = function toMinutesPart() {
|
|
740
|
+
return MathUtil.intMod(this.toMinutes(), LocalTime.MINUTES_PER_HOUR);
|
|
741
|
+
};
|
|
742
|
+
_proto.toSecondsPart = function toSecondsPart() {
|
|
743
|
+
return MathUtil.intMod(this._seconds, LocalTime.SECONDS_PER_MINUTE);
|
|
744
|
+
};
|
|
745
|
+
_proto.toMillisPart = function toMillisPart() {
|
|
746
|
+
return MathUtil.intDiv(this._nanos, 1000000);
|
|
747
|
+
};
|
|
736
748
|
_proto.compareTo = function compareTo(otherDuration) {
|
|
737
749
|
requireNonNull(otherDuration, 'otherDuration');
|
|
738
750
|
requireInstance(otherDuration, Duration, 'otherDuration');
|
|
@@ -4404,8 +4416,8 @@ var StringLiteralPrinterParser = function () {
|
|
|
4404
4416
|
|
|
4405
4417
|
var ZoneRulesProvider = function () {
|
|
4406
4418
|
function ZoneRulesProvider() {}
|
|
4407
|
-
ZoneRulesProvider.getRules = function getRules(
|
|
4408
|
-
throw new DateTimeException(
|
|
4419
|
+
ZoneRulesProvider.getRules = function getRules(_zoneId) {
|
|
4420
|
+
throw new DateTimeException('@js-joda/timezone not imported');
|
|
4409
4421
|
};
|
|
4410
4422
|
ZoneRulesProvider.getAvailableZoneIds = function getAvailableZoneIds() {
|
|
4411
4423
|
return [];
|