Duration.from(Duration) returns itself; from(Period) throws a runtime exception.

See: https://errorprone.info/bugpattern/DurationFrom