C# Class Subtext.Framework.Util.WindowsTimeZone

Inheritance: System.TimeZone
Datei anzeigen Open project: ayende/Subtext Class Usage Examples

Public Methods

Method Description
FormatAdjustedUniversalTime ( System.DateTime date ) : string
GetById ( int id ) : WindowsTimeZone

Gets a timezone the by id.

GetDaylightChanges ( int year ) : DaylightTime
GetUtcOffset ( System.DateTime time ) : System.TimeSpan
ToLocalTime ( DateTime time ) : DateTime

Returns the local time (for this timezone) that corresponds to a specified coordinated universal time (UTC).

ToString ( ) : string
ToUniversalTime ( DateTime time ) : DateTime

Private Methods

Method Description
GetUtcOffsetFromUniversalTime ( System.DateTime time, bool &isAmbiguousLocalDst ) : long
LoadTimeZonesFromXml ( ) : WindowsTimeZoneCollection
WindowsTimeZone ( ) : System
WindowsTimeZone ( string displayName, string daylightZoneName, string standardZoneName, int zoneIndex, byte tzi ) : System

Method Details

FormatAdjustedUniversalTime() public method

public FormatAdjustedUniversalTime ( System.DateTime date ) : string
date System.DateTime
return string

GetById() public static method

Gets a timezone the by id.
public static GetById ( int id ) : WindowsTimeZone
id int The id.
return WindowsTimeZone

GetDaylightChanges() public method

public GetDaylightChanges ( int year ) : DaylightTime
year int
return System.Globalization.DaylightTime

GetUtcOffset() public method

public GetUtcOffset ( System.DateTime time ) : System.TimeSpan
time System.DateTime
return System.TimeSpan

ToLocalTime() public method

Returns the local time (for this timezone) that corresponds to a specified coordinated universal time (UTC).
public ToLocalTime ( DateTime time ) : DateTime
time DateTime A UTC time.
return DateTime

ToString() public method

public ToString ( ) : string
return string

ToUniversalTime() public method

public ToUniversalTime ( DateTime time ) : DateTime
time DateTime
return DateTime