Skip to main content

TdxGanttControlRecurrencePattern.Duration Property

Specifies a task occurrence duration in ISO 8601 format.

Declaration

property Duration: TDuration read; write;

Property Value

Type
TDuration

Remarks

Duration is the total work time required for the task. According to the ISO 8601 standard, 1 day corresponds to 24 hours. In project management, 1 day corresponds to a work day that lasts 8 hours, so task duration is measured in hours, minutes, and seconds.

Use this property to express a task occurrence duration as follows: PT(N)H(N)M(N)S.

Options include:

Value

Description

Example

P

Period and time designation. You should use this pattern to denote occurrence duration; otherwise, the control throws an exception.

‘PT8H22M6S’ – 8 hours, 22 minutes, and 6 seconds.

T

N

An integer value.

H

Hours, minutes, and seconds.

Note

To omit a time unit, specify 0 before it.

M

S

See Also