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

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

Sets the values for the fields YEAR, MONTH, DATE, HOUR_OF_DAY, MINUTE, and SECOND. 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.
hour The value used to set the HOUR_OF_DAY time field.
minute The value used to set the MINUTE time field.
second The value used to set the SECOND time field. ICU 2.0

Definition at line 1067 of file calendar.cpp.

References UCAL_DATE, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_MONTH, UCAL_SECOND, and UCAL_YEAR.

{
    set(UCAL_YEAR, year);
    set(UCAL_MONTH, month);
    set(UCAL_DATE, date);
    set(UCAL_HOUR_OF_DAY, hour);
    set(UCAL_MINUTE, minute);
    set(UCAL_SECOND, second);
}


Generated by  Doxygen 1.6.0   Back to index