Subtract

Subtract (1 of 2)

Subtracts specified double value from this duration instance.

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

Subtract(double val)
ParameterDescription
valspecified double value to subtract from this instance.

Subtract (2 of 2)

Subtracts specified duration from this duration instance.

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

Subtract(Duration d)
ParameterDescription
dthe specified Duration instance to subtract from this instance.