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

U_DRAFT UBool U_EXPORT2 ucal_isWeekend ( const UCalendar cal,
UDate  date,
UErrorCode status 
)

Returns TRUE if the given UDate is in the weekend in this calendar system.

Parameters:
cal The UCalendar to query.
date The UDate in question.
status The error code for the operation.
Returns:
TRUE if the given UDate is in the weekend in this calendar system, FALSE otherwise. ICU 4.4

Definition at line 558 of file ucal.cpp.

References FALSE, and U_FAILURE.

{
    if (U_FAILURE(*status)) {
        return FALSE;
    }
    return ((Calendar*)cal)->isWeekend(date, *status);
}


Generated by  Doxygen 1.6.0   Back to index