Метод | Описание | |
---|---|---|
FormatAdjustedUniversalTime ( System.DateTime date ) : string | ||
GetById ( int id ) : |
Gets a timezone the by id.
|
|
GetDaylightChanges ( int year ) : |
||
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 |
Метод | Описание | |
---|---|---|
GetUtcOffsetFromUniversalTime ( System.DateTime time, bool &isAmbiguousLocalDst ) : long | ||
LoadTimeZonesFromXml ( ) : WindowsTimeZoneCollection | ||
WindowsTimeZone ( ) : System | ||
WindowsTimeZone ( string displayName, string daylightZoneName, string standardZoneName, int zoneIndex, byte tzi ) : System |
public FormatAdjustedUniversalTime ( System.DateTime date ) : string | ||
date | System.DateTime | |
Результат | string |
public static GetById ( int id ) : |
||
id | int | The id. |
Результат |
public GetDaylightChanges ( int year ) : |
||
year | int | |
Результат |
public GetUtcOffset ( System.DateTime time ) : System.TimeSpan | ||
time | System.DateTime | |
Результат | System.TimeSpan |
public ToLocalTime ( DateTime time ) : DateTime | ||
time | DateTime | A UTC time. |
Результат | DateTime |
public ToUniversalTime ( DateTime time ) : DateTime | ||
time | DateTime | |
Результат | DateTime |