A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1TimeZoneTransition.html below:

ICU 77.1: icu::TimeZoneTransition Class Reference

TimeZoneTransition is a class representing a time zone transition. More...

#include <tztrans.h>

TimeZoneTransition is a class representing a time zone transition.

An instance has a time of transition and rules for both before and after the transition.

Stable:
ICU 3.8

Definition at line 35 of file tztrans.h.

◆ TimeZoneTransition() [1/3]

Constructs a TimeZoneTransition with the time and the rules before/after the transition.

Parameters
time The time of transition in milliseconds since the base time. from The time zone rule used before the transition. to The time zone rule used after the transition.
Stable:
ICU 3.8
◆ TimeZoneTransition() [2/3] icu::TimeZoneTransition::TimeZoneTransition ( ) ◆ TimeZoneTransition() [3/3]

Copy constructor.

Parameters
Stable:
ICU 3.8
◆ ~TimeZoneTransition() icu::TimeZoneTransition::~TimeZoneTransition ( ) ◆ adoptFrom() void icu::TimeZoneTransition::adoptFrom ( TimeZoneRulefrom )

Adopts the rule used before the transition.

The caller must not delete the TimeZoneRule object passed in.

Parameters
from The time zone rule used before the transition.
Stable:
ICU 3.8
◆ adoptTo()

Adopts the rule used after the transition.

The caller must not delete the TimeZoneRule object passed in.

Parameters
to The time zone rule used after the transition.
Stable:
ICU 3.8
◆ clone()

Clone this TimeZoneTransition object polymorphically.

The caller owns the result and should delete it when done.

Returns
A copy of the object.
Stable:
ICU 3.8
◆ getDynamicClassID() virtual UClassID icu::TimeZoneTransition::getDynamicClassID ( ) const overridevirtual

Returns a unique class ID POLYMORPHICALLY.

Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.

Returns
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
Stable:
ICU 3.8

Reimplemented from icu::UObject.

◆ getFrom() const TimeZoneRule* icu::TimeZoneTransition::getFrom ( ) const

Returns the rule used before the transition.

Returns
The time zone rule used after the transition.
Stable:
ICU 3.8
◆ getStaticClassID() static UClassID icu::TimeZoneTransition::getStaticClassID ( ) static

Return the class ID for this class.

This is useful only for comparing to a return value from getDynamicClassID(). For example:

.   Base* polymorphic_pointer = createPolymorphicObject();
.   if (polymorphic_pointer->getDynamicClassID() ==
.       erived::getStaticClassID()) ...
Returns
The class ID for all objects of this class.
Stable:
ICU 3.8
◆ getTime() UDate icu::TimeZoneTransition::getTime ( ) const

Returns the time of transition in milliseconds.

Returns
The time of the transition in milliseconds since the 1970 Jan 1 epoch time.
Stable:
ICU 3.8
◆ getTo() const TimeZoneRule* icu::TimeZoneTransition::getTo ( ) const

Returns the rule used after the transition.

Returns
The time zone rule used after the transition.
Stable:
ICU 3.8
◆ operator!=()

Return true if the given TimeZoneTransition objects are semantically unequal.

Objects of different subclasses are considered unequal.

Parameters
that The object to be compared with.
Returns
true if the given TimeZoneTransition objects are semantically unequal.
Stable:
ICU 3.8
◆ operator=()

Assignment operator.

Parameters
right The object to be copied.
Stable:
ICU 3.8
◆ operator==()

Return true if the given TimeZoneTransition objects are semantically equal.

Objects of different subclasses are considered unequal.

Parameters
that The object to be compared with.
Returns
true if the given TimeZoneTransition objects are semantically equal.
Stable:
ICU 3.8
◆ setFrom() void icu::TimeZoneTransition::setFrom ( const TimeZoneRulefrom )

Sets the rule used before the transition.

The caller remains responsible for deleting the TimeZoneRule object.

Parameters
from The time zone rule used before the transition.
Stable:
ICU 3.8
◆ setTime() void icu::TimeZoneTransition::setTime ( UDate  time )

Sets the time of transition in milliseconds.

Parameters
time The time of the transition in milliseconds since the 1970 Jan 1 epoch time.
Stable:
ICU 3.8
◆ setTo() void icu::TimeZoneTransition::setTo ( const TimeZoneRuleto )

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.
Stable:
ICU 3.8

The documentation for this class was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4