Logo Search packages:      
Sourcecode: taskjuggler version File versions  Download package

int Project::calcWorkingDays ( const Interval &  iv  )  const

Returns the number of working days that overlap with the specified interval.

Definition at line 440 of file Project.cpp.

References isWorkingDay().

    int workingDays = 0;

    for (time_t s = midnight(iv.getStart()); s <= iv.getEnd();
         s = sameTimeNextDay(s))
        if (isWorkingDay(s))

    return workingDays;

Generated by  Doxygen 1.6.0   Back to index