System::TimeZone class

TimeZone class

Represents a time zone. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class TimeZone : public System::Object

Methods

MethodDescription
static get_CurrentTimeZone()Returns a new instance of TimeZone class that represents the current time zone.
virtual get_DaylightName() constReturns a name for the daylight saving time of the time zone represented by the current object.
virtual get_StandardName() constReturns a name for the standard time of the time zone represented by the current object.
virtual GetDaylightChanges(int32_t)Returns the daylight saving time period for a particular year.
virtual GetUtcOffset(DateTime)Returns the UTC offset for the specified local time.
virtual IsDaylightSavingTime(DateTime)Determines if the date and time value represented by the specified DateTime object falls in the range of daylight saving time for the time zone represented by the current TimeZone object.

See Also