Skip to content

add

add(other): (self) => Duration

Defined in: Types/Duration.ts:79

Adds two Durations together.

Duration

(self) => Duration

pipe(Duration.seconds(1), Duration.add(Duration.milliseconds(500))); // 1500ms