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

U_STABLE void U_EXPORT2 ucal_setMillis ( UCalendar cal,
UDate  dateTime,
UErrorCode status 

Set a UCalendar's current time in millis. The time is represented as milliseconds from the epoch.

calThe UCalendar to set.
dateTimeThe desired date and time.
statusA pointer to an UErrorCode to receive any errors
See also:
ucal_setDateTime ICU 2.0

Definition at line 331 of file ucal.cpp.

References U_FAILURE.

    if(U_FAILURE(*status)) return;

    ((Calendar*)cal)->setTime(dateTime, *status);

Generated by  Doxygen 1.6.0   Back to index