code: public static Duration fromMillis(long millis) {
      long seconds = millis / MILLIS_PER_SECOND;
      int nanos = (int) (millis % MILLIS_PER_SECOND * NANOS_PER_MILLI);
      return Duration.create(seconds, nanos);
    }
docs: Creates a new {@code Duration} from given milliseconds.
  
  @param millis the duration in milliseconds.
  @return a new {@code Duration} from given milliseconds.
  @throws IllegalArgumentException if the number of milliseconds is out of the range that can be
  represented by {@code Duration}.
  @since 0.5