GetDuration

Project.GetDuration method (1 of 3)

Gets Duration object with the specified number of units and default duration format which is defined in project’s settings DurationFormat.

public Duration GetDuration(double val)
Parameter Type Description
val Double specified number of units.

Return Value

Duration object.

See Also


Project.GetDuration method (2 of 3)

Gets Duration object with the specified number of TimeUnitType units.

public Duration GetDuration(double val, TimeUnitType timeUnit)
Parameter Type Description
val Double specified number of units.
timeUnit TimeUnitType specified TimeUnitType value.

Return Value

Duration object.

See Also


Project.GetDuration method (3 of 3)

Gets Duration object with the specified TimeSpan value and specified TimeUnitType value.

public Duration GetDuration(TimeSpan timeSpan, TimeUnitType timeUnit)
Parameter Type Description
timeSpan TimeSpan specified TimeSpan value.
timeUnit TimeUnitType specified TimeUnitType value.

Return Value

Duration object.

See Also