*/
  public Duration toDuration() {

    if ((this.years | this.months | this.days) != 0) {
      throw new DateTimeException("Unable to convert period to duration as years/months/days are present: " + this);
    }
    return Duration.ofNanos(this.nanos);
  }