Метод | Описание | |
---|---|---|
ConvertTime ( DateTimeOffset dateTimeOffset, |
TimeZoneInfo.ConvertTime is not supported under mono
|
|
FindTimeZoneById ( string id ) : |
Tries to find time zone with given id, has ability do some fallbacks when necessary.
|
|
GetUtcOffset ( System.DateTime dateTime, |
||
GetUtcOffset ( DateTimeOffset dateTimeOffset, |
TimeZoneInfo.GetUtcOffset(DateTimeOffset) is not supported under mono
|
Метод | Описание | |
---|---|---|
TimeZoneUtil ( ) : System |
public static ConvertTime ( DateTimeOffset dateTimeOffset, |
||
dateTimeOffset | DateTimeOffset | |
timeZoneInfo | ||
Результат | DateTimeOffset |
public static FindTimeZoneById ( string id ) : |
||
id | string | System id of the time zone. |
Результат |
public static GetUtcOffset ( System.DateTime dateTime, |
||
dateTime | System.DateTime | |
timeZoneInfo | ||
Результат | System.TimeSpan |
public static GetUtcOffset ( DateTimeOffset dateTimeOffset, |
||
dateTimeOffset | DateTimeOffset | |
timeZoneInfo | ||
Результат | System.TimeSpan |