code: public java.time.Duration toTemporalAmount() {
  
          if (this.scale == TimeScale.POSIX) {
              return java.time.Duration.ofSeconds(this.seconds, this.nanos);
          } else {
              throw new IllegalStateException(
                  "Can only convert based on &quot;java.util.concurrent.TimeUnit&quot;: " + this);
          }
  
      }
docs: /*[deutsch]
  <p>Konvertiet diese Maschinenzeit zu ihrem JSR-310-&Auml;quivalent. </p>
  
  @return  java.time.Duration
  @throws  IllegalStateException if this instance is not based on {@code java.util.concurrent.TimeUnit}
  @see     #from(java.time.Duration)
  @since   4.28