[]
        
(Showing Draft Content)

C1.C1Schedule.TimeZoneInfo

TimeZoneInfo Class

The TimeZoneInfo class determines time zone properties. It can be used for conversion to/from utc times and local times and respect DST.

Inheritance
TimeZoneInfo
Namespace: C1.C1Schedule
Assembly: C1.Win.C1Schedule.4.8.dll
Syntax
public class TimeZoneInfo

Properties

Name Description
CurrentTimeZone

Gets the current time zone information.

DaylightBias

Gets the difference, in minutes, between UTC and local time (in daylight savings time). UTC = local time + bias.

DaylightName

The time zone's name during daylight savings time (DST).

DaylightOffset

Gets the daylight offset from UTC as a TimeSpan.

DisplayName

The time zone's display name (e.g. '(GMT-05:00) Eastern Time (US and Canada)').

StandardBias

Gets the difference, in minutes, between UTC and local time. UTC = local time + bias.

StandardName

The time zone's name during 'standard' time (i.e. not daylight savings).

StandardOffset

Gets the standard offset from UTC as a TimeSpan.

TimeZoneNames

Gets a string array of display time zone names supported in the local system.

TimeZones

Gets a list of all time zones defined in the local system.

Methods

Name Description
CopyFrom(TimeZoneInfo)

Copies a time zone info form the specified TimeZoneInfo object into the current instance.

GetTimeZone(string)

Returns a TimeZoneInfo instance for the time zone with supplied name.

ToLocalTime(DateTime)

Converts the value of the utc time to a local time in this time zone.

ToString()

Gets display name of this time zone instance.

ToUniversalTime(DateTime)

Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries.