Subtracts another fixed duration. @param rhs the duration to subtract @return the resulting duration
(final Duration rhs)
| 85 | * @return the resulting duration |
| 86 | */ |
| 87 | public Duration minus(final Duration rhs) { |
| 88 | return new Duration(this.getDays() - rhs.getDays(), this.getHours() - rhs.getHours(), |
| 89 | this.getMinutes() - rhs.getMinutes(), this.getSeconds() - rhs.getSeconds(), |
| 90 | this.getMillis() - rhs.getMillis()); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Subtracts a time duration. |
nothing calls this directly
no test coverage detected