Duration

Duration class

Represents duration in a project.

Methods

NameDescription
Add (2 overloads)Adds specified double value to this duration.
ConvertConverts Duration object to another duration with specified time units.
Equals (2 overloads)Returns a value indicating whether this instance is equal to a specified object.
get_IsElapsedGets a value indicating whether time unit is elapsed. The flag which determines whether this Duration instance is elapsed.
get_IsEstimatedGets a value indicating whether time unit is estimated. The flag which determines whether this Duration instance is estimated.
get_TimeSpanGets TimeSpan instance of this Duration object. The TimeSpan instance of this Duration object.
get_TimeUnitGets time unit type for this object. The time unit type of this Duration instance.
GetHashCodeReturns a hash code value for this object.
ParseConverts the specified string to the instance of Duration struct.
ParseTimeSpanParses duration string in format “PT–H–M–S–”.
Subtract (2 overloads)Subtracts specified double value from this duration instance.
ToDoubleConverts Duration object to double value.
ToStringReturns a string representation of this instance.