MCPcopy Create free account
hub / github.com/codemix/graph / plus

Method plus

packages/graph/src/TemporalTypes.ts:1347–1354  ·  view source on GitHub ↗

* Add this duration to another duration.

(other: DurationValue)

Source from the content-addressed store, hash-verified

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.

Callers 2

resolveConditionValueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected