Duration

Duration class

Represents duration in a project.

The Duration type exposes the following members:

Constructors

NameDescription
Duration()Initializes a new instance of the Duration class

Properties

NameDescription
time_spanGets time_span instance of this Duration object.
time_unitGets time unit type for this object.
is_estimatedGets a value indicating whether time unit is estimated.
is_elapsedGets a value indicating whether time unit is elapsed.

Methods

NameDescription
add(d)Adds specified duration to this duration.
add(val)Adds specified double value to this duration.
subtract(d)Subtracts specified duration from this duration instance.
subtract(val)Subtracts specified double value from this duration instance.
parse(p, value)Converts the specified string to the instance of Duration struct.
parse_time_span(value)Parses duration string in format “PT–H–M–S–”.
to_double()Converts Duration object to float value.
convert(time_unit_type)Converts Duration object to another duration with specified time units.
equals(other)Returns a value indicating whether this instance is equal to a specified object.

See Also