* Add this duration to another duration.
(other: DurationValue)
| 1345 | * Add this duration to another duration. |
| 1346 | */ |
| 1347 | public plus(other: DurationValue): DurationValue { |
| 1348 | return new DurationValue( |
| 1349 | this.#months + other.#months, |
| 1350 | this.#days + other.#days, |
| 1351 | this.#seconds + other.#seconds, |
| 1352 | this.#nanoseconds + other.#nanoseconds, |
| 1353 | ); |
| 1354 | } |
| 1355 | |
| 1356 | /** |
| 1357 | * Subtract another duration from this duration. |
no outgoing calls
no test coverage detected