Logo Search packages:      
Sourcecode: icu version File versions

Calendar *U_EXPORT2 Calendar::createInstance ( const TimeZone zone,
UErrorCode success 
) [static, inherited]

Creates a Calendar using the given timezone and the default locale. The TimeZone is _not_ adopted; the client is still responsible for deleting it.

zone The timezone.
success Indicates the success/failure of Calendar creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise.
A Calendar if created successfully. NULL otherwise. ICU 2.0

Definition at line 762 of file calendar.cpp.

References Calendar::createInstance(), and Locale::getDefault().

    return createInstance(zone, Locale::getDefault(), success);

Generated by  Doxygen 1.6.0   Back to index