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

U_STABLE UDate U_EXPORT2 ucal_getMillis ( const UCalendar cal,
UErrorCode status 

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

calThe UCalendar to query.
statusA pointer to an UErrorCode to receive any errors
The calendar's current time in millis.
See also:
ucal_setDateTime ICU 2.0

Definition at line 321 of file ucal.cpp.

References U_FAILURE.


    if(U_FAILURE(*status)) return (UDate) 0;

    return ((Calendar*)cal)->getTime(*status);

Generated by  Doxygen 1.6.0   Back to index