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.

cal The UCalendar to set.
dateTime The desired date and time.
status A pointer to an UErrorCode to receive any errors
See also:


ucal_setDateTime ICU 2.0

Definition at line 334 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