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

Method minus

packages/graph/src/TemporalTypes.ts:1359–1366  ·  view source on GitHub ↗

* Subtract another duration from this duration.

(other: DurationValue)

Source from the content-addressed store, hash-verified

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.

Callers 2

resolveConditionValueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected