TimeZone.GetWindowsID(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu]</strong> Converts a system time zone ID to an equivalent Windows time zone ID.
[Android.Runtime.Register("getWindowsID", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetWindowsID (string? id);
[<Android.Runtime.Register("getWindowsID", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetWindowsID : string -> string
Parameters
- id
- String
A system time zone ID
Returns
A Windows time zone ID mapped from the input system time zone ID,
or null
when the input ID is unknown or unmappable.
- Attributes
Remarks
<strong>[icu]</strong> Converts a system time zone ID to an equivalent Windows time zone ID. For example, Windows time zone ID "Pacific Standard Time" is returned for input "America/Los_Angeles".
There are system time zones that cannot be mapped to Windows zones. When the input system time zone ID is unknown or unmappable to a Windows time zone, then this method returns null
.
This implementation utilizes Zone-Tzid mapping data. The mapping data is updated time to time. To get the latest changes, please read the ICU user guide section Updating the Time Zone Data.
Java documentation for android.icu.util.TimeZone.getWindowsID(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.