length <value> <unit>

length <value> <unit>
Description

Specifies the time the task occupies the resources. This is working time, not calendar time. 7d means 7 working days, not one week. Whether a day is considered a working day or not depends on the defined working hours and global vacations. A task with a length specification may have resource allocations. Resources are allocated when they are available. The availability has no impact on the duration of the task. A day where none of the specified resources is available is still considered a working day, if there is no global vacation or global working time defined.

Tasks may not have subtasks if this attribute is used.

AttributesNameTypeDescription
valueREAL 
unitUNIT 
Contexttask,
InheritableNoScenario Spec.Yes
See alsoduration, effort

project duration "Duration Example" "1.0" 2005-06-06 - 2005-06-26

resource tux "Tux"

task t "Enclosing" {
  start 2005-06-06
  task durationTask "Duration Task" {
    # This task is 10 calendar days long.
    duration 10d
  }

  task intervalTask "Interval Task" {
    # This task is similar to the durationTask. Instead of a start
    # date and a duration it has a fixed start and end date.
    end 2005-06-17
  }

  task lengthTask "Length Task" {
    # This task 10 working days long. So about 12 calendar days.
    length 10d
  }

  task effortTask "Effort Task" {
    effort 10d
    allocate tux
  }
}