Subtracts a fixed duration. @param rhs the duration to subtract @return the resulting duration
(final Duration rhs)
| 95 | * @return the resulting duration |
| 96 | */ |
| 97 | @Override |
| 98 | public Duration minus(final Duration rhs) { |
| 99 | return new TimeDuration(this.getDays() - rhs.getDays(), this.getHours() - rhs.getHours(), |
| 100 | this.getMinutes() - rhs.getMinutes(), this.getSeconds() - rhs.getSeconds(), |
| 101 | this.getMillis() - rhs.getMillis()); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Subtracts a datum-dependent duration. |
nothing calls this directly
no test coverage detected