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

U_STABLE void U_EXPORT2 ucal_setDateTime ( UCalendar cal,
int32_t  year,
int32_t  month,
int32_t  date,
int32_t  hour,
int32_t  minute,
int32_t  second,
UErrorCode status 
)

Set a UCalendar's current date. The date is represented as a series of 32-bit integers.

Parameters:
calThe UCalendar to set.
yearThe desired year.
monthThe desired month; one of UCAL_JANUARY, UCAL_FEBRUARY, UCAL_MARCH, UCAL_APRIL, UCAL_MAY, UCAL_JUNE, UCAL_JULY, UCAL_AUGUST, UCAL_SEPTEMBER, UCAL_OCTOBER, UCAL_NOVEMBER, UCAL_DECEMBER, UCAL_UNDECIMBER
dateThe desired day of the month.
hourThe desired hour of day.
minuteThe desired minute.
secondThe desirec second.
statusA pointer to an UErrorCode to receive any errors
See also:
ucal_getMillis
ucal_setMillis
ucal_setDate ICU 2.0

Definition at line 356 of file ucal.cpp.

References U_FAILURE.

{
    if(U_FAILURE(*status)) return;

    ((Calendar*)cal)->set(year, month, date, hour, minute, second);
}

Generated by  Doxygen 1.6.0   Back to index