System::TimeZoneInfo::TransitionTime Class Referencefinal

RTTI information. More...

Public Member Functions

 TransitionTime ()
 Default constructor. FOR INTERNAL USE. More...
 
DateTime get_TimeOfDay () const
 Returns a DateTime object that represents the specific time at which the time change occurs. More...
 
int get_Month () const
 Returns the ordinal number of the month of the year at which the time change occurs. More...
 
int get_Week () const
 Returns the ordinal number of the week of the month at which the time change occurs. More...
 
int get_Day () const
 Returns the ordinal number of the day of week at which the time change occurs. More...
 
DayOfWeek get_DayOfWeek () const
 Returns the value that represents the day of week at which the time change occurs. More...
 
bool get_IsFixedDateRule () const
 
bool operator== (const TransitionTime &other) const
 
bool operator!= (const TransitionTime &other) const
 

Static Public Member Functions

static TransitionTime CreateFixedDateRule (DateTime time_of_day, int month, int day)
 
static TransitionTime CreateFloatingDateRule (DateTime time_of_day, int month, int week, DayOfWeek day_of_week)
 
static TransitionTime CreateTransitionTime (DateTime time_of_day, int month, int week, int day, DayOfWeek day_of_week, bool is_fixed_date_rule)
 

Detailed Description

RTTI information.

Provides information about a time change in a time zone.

Constructor & Destructor Documentation

◆ TransitionTime()

System::TimeZoneInfo::TransitionTime::TransitionTime ( )

Default constructor. FOR INTERNAL USE.

Member Function Documentation

◆ CreateFixedDateRule()

static TransitionTime System::TimeZoneInfo::TransitionTime::CreateFixedDateRule ( DateTime  time_of_day,
int  month,
int  day 
)
inlinestatic

Constructs an instance of TransitionTime class that represents a fixed-date rule (time change that occurs on specific day of a specific month).

Parameters
time_of_dayThe specific time at which the time change occurs.
monthThe month of the year at which the time change occurs.
dayThe day of the month at which the time change occurs.
Returns
An istance of TransitionTime class that represents the described time change.

◆ CreateFloatingDateRule()

static TransitionTime System::TimeZoneInfo::TransitionTime::CreateFloatingDateRule ( DateTime  time_of_day,
int  month,
int  week,
DayOfWeek  day_of_week 
)
inlinestatic

Constructs an instance of TransitionTime class that represents a floating-date rule (time change that occurs on specific day of a specific week of a specific month).

Parameters
time_of_dayThe specific time at which the time change occurs.
monthThe month of the year at which the time change occurs.
weekThe week of the month at which the time change occurs.
day_of_weekThe day of week at which the time change occurs.
Returns
An istance of TransitionTime class that represents the described time change.

◆ CreateTransitionTime()

static TransitionTime System::TimeZoneInfo::TransitionTime::CreateTransitionTime ( DateTime  time_of_day,
int  month,
int  week,
int  day,
DayOfWeek  day_of_week,
bool  is_fixed_date_rule 
)
inlinestatic

Constructs an instance of TransitionTime class that represents a time change described with the specified parameters.

Parameters
time_of_dayThe specific time at which the time change occurs.
monthThe month of the year at which the time change occurs.
weekThe week of the month at which the time change occurs.
dayThe day at which the time change occurs.
day_of_weekThe day of week at which the time change occurs.
is_fixed_date_ruleValue that indicates if the time change occurs at a fixed date and time or a floating date and time.
Returns
An istance of TransitionTime class that represents the described time change.

◆ get_Day()

int System::TimeZoneInfo::TransitionTime::get_Day ( ) const
inline

Returns the ordinal number of the day of week at which the time change occurs.

◆ get_DayOfWeek()

DayOfWeek System::TimeZoneInfo::TransitionTime::get_DayOfWeek ( ) const
inline

Returns the value that represents the day of week at which the time change occurs.

◆ get_IsFixedDateRule()

bool System::TimeZoneInfo::TransitionTime::get_IsFixedDateRule ( ) const
inline

Returns the value that indicates if the time change occurs at a fixed date and time or a floating date and time.

Returns
True if the time change occurs at a fixed date and time, otherwise - false

◆ get_Month()

int System::TimeZoneInfo::TransitionTime::get_Month ( ) const
inline

Returns the ordinal number of the month of the year at which the time change occurs.

◆ get_TimeOfDay()

DateTime System::TimeZoneInfo::TransitionTime::get_TimeOfDay ( ) const
inline

Returns a DateTime object that represents the specific time at which the time change occurs.

◆ get_Week()

int System::TimeZoneInfo::TransitionTime::get_Week ( ) const
inline

Returns the ordinal number of the week of the month at which the time change occurs.

◆ operator!=()

bool System::TimeZoneInfo::TransitionTime::operator!= ( const TransitionTime other) const
inline

◆ operator==()

bool System::TimeZoneInfo::TransitionTime::operator== ( const TransitionTime other) const
inline