@js-joda/core 5.6.4 → 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.js CHANGED
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 5.6.4
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)
@@ -737,6 +737,18 @@
737
737
  totalNanos = MathUtil.safeAdd(totalNanos, this._nanos);
738
738
  return totalNanos;
739
739
  };
740
+ _proto.toHoursPart = function toHoursPart() {
741
+ return MathUtil.intMod(this.toHours(), LocalTime.HOURS_PER_DAY);
742
+ };
743
+ _proto.toMinutesPart = function toMinutesPart() {
744
+ return MathUtil.intMod(this.toMinutes(), LocalTime.MINUTES_PER_HOUR);
745
+ };
746
+ _proto.toSecondsPart = function toSecondsPart() {
747
+ return MathUtil.intMod(this._seconds, LocalTime.SECONDS_PER_MINUTE);
748
+ };
749
+ _proto.toMillisPart = function toMillisPart() {
750
+ return MathUtil.intDiv(this._nanos, 1000000);
751
+ };
740
752
  _proto.compareTo = function compareTo(otherDuration) {
741
753
  requireNonNull(otherDuration, 'otherDuration');
742
754
  requireInstance(otherDuration, Duration, 'otherDuration');
@@ -4408,8 +4420,8 @@
4408
4420
 
4409
4421
  var ZoneRulesProvider = function () {
4410
4422
  function ZoneRulesProvider() {}
4411
- ZoneRulesProvider.getRules = function getRules(zoneId) {
4412
- throw new DateTimeException("unsupported ZoneId:" + zoneId);
4423
+ ZoneRulesProvider.getRules = function getRules(_zoneId) {
4424
+ throw new DateTimeException('@js-joda/timezone not imported');
4413
4425
  };
4414
4426
  ZoneRulesProvider.getAvailableZoneIds = function getAvailableZoneIds() {
4415
4427
  return [];