TimeZone.GetAvailableIDs 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.
Overloads
GetAvailableIDs(TimeZone+SystemTimeZoneType, String, Integer) | |
GetAvailableIDs(String) |
Return a new String array containing all system TimeZone IDs associated with the given country. |
GetAvailableIDs(Int32) |
Return a new String array containing all system TimeZone IDs with the given raw offset from GMT. |
GetAvailableIDs() |
Return a new String array containing all system TimeZone IDs. |
GetAvailableIDs(TimeZone+SystemTimeZoneType, String, Integer)
[Android.Runtime.Register("getAvailableIDs", "(Landroid/icu/util/TimeZone$SystemTimeZoneType;Ljava/lang/String;Ljava/lang/Integer;)Ljava/util/Set;", "", ApiSince=24)]
public static System.Collections.Generic.ICollection<string>? GetAvailableIDs (Android.Icu.Util.TimeZone.SystemTimeZoneType? zoneType, string? region, Java.Lang.Integer? rawOffset);
[<Android.Runtime.Register("getAvailableIDs", "(Landroid/icu/util/TimeZone$SystemTimeZoneType;Ljava/lang/String;Ljava/lang/Integer;)Ljava/util/Set;", "", ApiSince=24)>]
static member GetAvailableIDs : Android.Icu.Util.TimeZone.SystemTimeZoneType * string * Java.Lang.Integer -> System.Collections.Generic.ICollection<string>
Parameters
- zoneType
- TimeZone.SystemTimeZoneType
- region
- String
- rawOffset
- Integer
Returns
- Attributes
Remarks
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.
Applies to
GetAvailableIDs(String)
Return a new String array containing all system TimeZone IDs associated with the given country.
[Android.Runtime.Register("getAvailableIDs", "(Ljava/lang/String;)[Ljava/lang/String;", "", ApiSince=24)]
public static string[]? GetAvailableIDs (string? country);
[<Android.Runtime.Register("getAvailableIDs", "(Ljava/lang/String;)[Ljava/lang/String;", "", ApiSince=24)>]
static member GetAvailableIDs : string -> string[]
Parameters
- country
- String
a two-letter ISO 3166 country code, or null
to return zones not associated with any country
Returns
an array of IDs for system TimeZones in the given country. If there are none, return a zero-length array.
- Attributes
Remarks
Return a new String array containing all system TimeZone IDs associated with the given country. These IDs may be passed to get()
to construct the corresponding TimeZone object.
Java documentation for android.icu.util.TimeZone.getAvailableIDs(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.
Applies to
GetAvailableIDs(Int32)
Return a new String array containing all system TimeZone IDs with the given raw offset from GMT.
[Android.Runtime.Register("getAvailableIDs", "(I)[Ljava/lang/String;", "", ApiSince=24)]
public static string[]? GetAvailableIDs (int rawOffset);
[<Android.Runtime.Register("getAvailableIDs", "(I)[Ljava/lang/String;", "", ApiSince=24)>]
static member GetAvailableIDs : int -> string[]
Parameters
- rawOffset
- Int32
the offset in milliseconds from GMT
Returns
an array of IDs for system TimeZones with the given raw offset. If there are none, return a zero-length array.
- Attributes
Remarks
Return a new String array containing all system TimeZone IDs with the given raw offset from GMT. These IDs may be passed to get()
to construct the corresponding TimeZone object.
Java documentation for android.icu.util.TimeZone.getAvailableIDs(int)
.
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.
Applies to
GetAvailableIDs()
Return a new String array containing all system TimeZone IDs.
[Android.Runtime.Register("getAvailableIDs", "()[Ljava/lang/String;", "", ApiSince=24)]
public static string[]? GetAvailableIDs ();
[<Android.Runtime.Register("getAvailableIDs", "()[Ljava/lang/String;", "", ApiSince=24)>]
static member GetAvailableIDs : unit -> string[]
Returns
an array of all system TimeZone IDs
- Attributes
Remarks
Return a new String array containing all system TimeZone IDs. These IDs (and only these IDs) may be passed to get()
to construct the corresponding TimeZone object.
Java documentation for android.icu.util.TimeZone.getAvailableIDs()
.
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.