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

void Calendar::set ( int32_t  year,
int32_t  month,
int32_t  date 
) [inherited]

Sets the values for the fields YEAR, MONTH, and DATE. Other field values are retained; call clear() first if this is not desired.

Parameters:
year The value used to set the YEAR time field.
month The value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date The value used to set the DATE time field. ICU 2.0

Definition at line 1045 of file calendar.cpp.

References UCAL_DATE, UCAL_MONTH, and UCAL_YEAR.

{
    set(UCAL_YEAR, year);
    set(UCAL_MONTH, month);
    set(UCAL_DATE, date);
}


Generated by  Doxygen 1.6.0   Back to index