* Subtract another duration from this duration.
(other: DurationValue)
| 1357 | * Subtract another duration from this duration. |
| 1358 | */ |
| 1359 | public minus(other: DurationValue): DurationValue { |
| 1360 | return new DurationValue( |
| 1361 | this.#months - other.#months, |
| 1362 | this.#days - other.#days, |
| 1363 | this.#seconds - other.#seconds, |
| 1364 | this.#nanoseconds - other.#nanoseconds, |
| 1365 | ); |
| 1366 | } |
| 1367 | |
| 1368 | /** |
| 1369 | * Multiply this duration by a scalar. |
no outgoing calls
no test coverage detected