Logo Search packages:      
Sourcecode: icu version File versions

UBool Calendar::isSet ( UCalendarDateFields  field  )  const [inherited]

Determines if the given time field has a value set. This can affect in the resolving of time in Calendar. Unset fields have a value of zero, by definition.

Parameters:
field The given time field.
Returns:
True if the given time field has a value set; false otherwise. ICU 2.6.

Definition at line 1109 of file calendar.cpp.

References Calendar::fAreFieldsVirtuallySet, and Calendar::fStamp.

{
    return fAreFieldsVirtuallySet || (fStamp[field] != kUnset);
}


Generated by  Doxygen 1.6.0   Back to index