Partager via


TimeZone.GetAvailableIDs Method

Definition

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

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

String[]

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

String[]

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

String[]

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.

Applies to