TimeZoneConverter 類別

定義

時區轉換器。 (1) 從 Windows (.NET) 時區到 iana 時區。 (2) 從 iana 時區到 windows (.NET) 時區。 windows ref: https://support.microsoft.com/en-us/help/22803/daylight-saving-time 。 iana ref: https://www.iana.org/time-zones 。 請參閱 WindowsIanaMapping 檔案中的資料庫字典。

public static class TimeZoneConverter
type TimeZoneConverter = class
Public Class TimeZoneConverter
繼承
TimeZoneConverter

方法

IanaToWindows(String)

將 IANA 時區格式轉換為 Windows 時區格式。

WindowsToIana(String)

將 Windows 時區轉換為 iana 時區。

適用於