Subtract

Duration.Subtract method (1 of 2)

Subtracts specified duration from this duration instance.

public Duration Subtract(Duration d)
Parameter Type Description
d Duration the specified Duration instance to subtract from this instance.

Return Value

New duration object that represents the value of this instance minus the specified duration value.

See Also


Duration.Subtract method (2 of 2)

Subtracts specified double value from this duration instance.

public Duration Subtract(double val)
Parameter Type Description
val Double specified Double value to subtract from this instance.

Return Value

New duration object that represents the value of this instance minus the specified duration value.

See Also