System.TimeZone Members

The members of System.TimeZone are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the TimeZone class.

Public Properties

[read-only]
static
CurrentTimeZoneTimeZone.

Gets the time zone of the current computer.

[read-only]
abstract
DaylightNamestring.

Gets the daylight saving time zone name.

[read-only]
abstract
StandardNamestring.

Gets the standard time zone name.

Public Methods

abstract
GetDaylightChanges(int) : System.Globalization.DaylightTime

Returns the daylight saving time period for a particular year.

abstract
GetUtcOffset(DateTime) : TimeSpan

Returns the Coordinated Universal Time (UTC) offset for the specified local time.

IsDaylightSavingTime(DateTime) : bool

Returns a value indicating whether the specified date and time is within a daylight saving time period.

static
IsDaylightSavingTime(DateTime, System.Globalization.DaylightTime) : bool

Returns a value indicating whether the specified date and time is within the specified daylight saving time period.

ToLocalTime(DateTime) : DateTime

Returns the local time that corresponds to a specified date and time value.

ToUniversalTime(DateTime) : DateTime

Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.