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

bool Project::isWorkingTime ( time_t  d  )  const

If date is contained in a vacation day or the date is outside of the defined working hours, FALSE is returned. Otherwise TRUE.

Definition at line 409 of file Project.cpp.

References isVacation().

{
    if (isVacation(d))
        return FALSE;

    int dow = dayOfWeek(d, FALSE);
    for (QPtrListIterator<Interval> ili(*(workingHours[dow])); *ili != 0; ++ili)
    {
        if ((*ili)->contains(secondsOfDay(d)))
            return TRUE;
    }
    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index