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

void TimeZoneTransition::setTo ( const TimeZoneRule to  ) 

Sets the rule used after the transition. The caller remains responsible for deleting the TimeZoneRule object.

Parameters:
to The time zone rule used after the transition. ICU 3.8

Definition at line 110 of file tztrans.cpp.

References TimeZoneRule::clone(), and NULL.

Referenced by SimpleTimeZone::getNextTransition(), RuleBasedTimeZone::getNextTransition(), SimpleTimeZone::getPreviousTransition(), RuleBasedTimeZone::getPreviousTransition(), and operator=().

                                                {
    if (fTo != NULL) {
        delete fTo;
    }
    fTo = to.clone();
}


Generated by  Doxygen 1.6.0   Back to index