Click or drag to resize

Duration Operators

The Duration type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Adds two specified Duration instances.
Public operatorStatic memberDivision(Duration, Duration)
Divides the Duration by another duration.
Public operatorStatic memberDivision(Duration, Double)
Divides the Duration by a constant.
Public operatorStatic memberEquality
Returns if two Durations are exactly equal, within the limits of floating point precision. To be considered equal, the Days and Standard properties must be identical (or one must be null) and the difference between the Seconds properties must be less than 1.0e-10.
Public operatorStatic memberGreaterThan
Returns if left is longer than right.
Public operatorStatic memberGreaterThanOrEqual
Returns if left is longer than or exactly equal to right.
Public operatorStatic memberInequality
Returns if two Durations are NOT exactly equal, within the limits of floating point precision. To be considered equal, the Days and Standard properties must be identical (or one must be null) and the difference between the Seconds properties must be less than 1.0e-10.
Public operatorStatic memberLessThan
Returns if left is shorter than right.
Public operatorStatic memberLessThanOrEqual
Returns if left is shorter than or exactly equal to right.
Public operatorStatic memberMultiply
Multiplies the Duration by a constant.
Public operatorStatic memberSubtraction
Subtracts a specified Duration from another specified Duration.
Public operatorStatic memberUnaryNegation
Inverts a specified Duration. For example, if the value represents a positive quantity of time, the returned Duration will be a negative quantity of time.
Top
See Also