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

U_STABLE void U_EXPORT2 ucal_setDefaultTimeZone ( const UChar *  zoneID,
UErrorCode ec 
)

Set the default time zone.

Parameters:
zoneID null-terminated time zone ID
ec input/output error code
ICU 2.6

Definition at line 74 of file ucal.cpp.

References TimeZone::adoptDefault(), and NULL.

                                                             {
    TimeZone* zone = _createTimeZone(zoneID, -1, ec);
    if (zone != NULL) {
        TimeZone::adoptDefault(zone);
    }
}


Generated by  Doxygen 1.6.0   Back to index