Duration
Contents
[
Hide
]Duration class
Represents duration in a project.
The Duration type exposes the following members:
Constructors
Name | Description |
---|---|
Duration() | Initializes a new instance of the Duration class |
Properties
Name | Description |
---|---|
time_span | Gets time_span instance of this Duration object. |
time_unit | Gets time unit type for this object. |
is_estimated | Gets a value indicating whether time unit is estimated. |
is_elapsed | Gets a value indicating whether time unit is elapsed. |
Methods
Name | Description |
---|---|
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
- namespace aspose.tasks
- assembly Aspose.Tasks