Język

TimeZoneFormat.Parse Method

Definition

Overloads

Name Description
Parse(TimeZoneFormat+Style, String, ParsePosition, EnumSet, Output)

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the parse options.

Parse(TimeZoneFormat+Style, String, ParsePosition, Output)

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the default parse options.

Parse(String)

Returns a TimeZone for the given text.

Parse(String, ParsePosition)

Returns a TimeZone by parsing the time zone string according to the given parse position.

Parse(TimeZoneFormat+Style, String, ParsePosition, EnumSet, Output)

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the parse options.

[Android.Runtime.Register("parse", "(Landroid/icu/text/TimeZoneFormat$Style;Ljava/lang/String;Ljava/text/ParsePosition;Ljava/util/EnumSet;Landroid/icu/util/Output;)Landroid/icu/util/TimeZone;", "GetParse_Landroid_icu_text_TimeZoneFormat_Style_Ljava_lang_String_Ljava_text_ParsePosition_Ljava_util_EnumSet_Landroid_icu_util_Output_Handler", ApiSince=24)]
public virtual Android.Icu.Util.TimeZone? Parse(Android.Icu.Text.TimeZoneFormat.Style? style, string? text, Java.Text.ParsePosition? pos, Java.Util.EnumSet? options, Android.Icu.Util.Output? timeType);
[<Android.Runtime.Register("parse", "(Landroid/icu/text/TimeZoneFormat$Style;Ljava/lang/String;Ljava/text/ParsePosition;Ljava/util/EnumSet;Landroid/icu/util/Output;)Landroid/icu/util/TimeZone;", "GetParse_Landroid_icu_text_TimeZoneFormat_Style_Ljava_lang_String_Ljava_text_ParsePosition_Ljava_util_EnumSet_Landroid_icu_util_Output_Handler", ApiSince=24)>]
abstract member Parse : Android.Icu.Text.TimeZoneFormat.Style * string * Java.Text.ParsePosition * Java.Util.EnumSet * Android.Icu.Util.Output -> Android.Icu.Util.TimeZone
override this.Parse : Android.Icu.Text.TimeZoneFormat.Style * string * Java.Text.ParsePosition * Java.Util.EnumSet * Android.Icu.Util.Output -> Android.Icu.Util.TimeZone

Parameters

style
TimeZoneFormat.Style

the format style.

text
String

the text contains a time zone string at the position.

pos
ParsePosition

the position.

options
EnumSet

the parse options.

timeType
Output

The output argument for receiving the time type (standard/daylight/unknown), or specify null if the information is not necessary.

Returns

A TimeZone, or null if the input could not be parsed.

Attributes

Remarks

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the parse options.

Android reference for android.icu.text.TimeZoneFormat.parse.

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

Parse(TimeZoneFormat+Style, String, ParsePosition, Output)

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the default parse options.

[Android.Runtime.Register("parse", "(Landroid/icu/text/TimeZoneFormat$Style;Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/util/Output;)Landroid/icu/util/TimeZone;", "GetParse_Landroid_icu_text_TimeZoneFormat_Style_Ljava_lang_String_Ljava_text_ParsePosition_Landroid_icu_util_Output_Handler", ApiSince=24)]
public virtual Android.Icu.Util.TimeZone? Parse(Android.Icu.Text.TimeZoneFormat.Style? style, string? text, Java.Text.ParsePosition? pos, Android.Icu.Util.Output? timeType);
[<Android.Runtime.Register("parse", "(Landroid/icu/text/TimeZoneFormat$Style;Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/util/Output;)Landroid/icu/util/TimeZone;", "GetParse_Landroid_icu_text_TimeZoneFormat_Style_Ljava_lang_String_Ljava_text_ParsePosition_Landroid_icu_util_Output_Handler", ApiSince=24)>]
abstract member Parse : Android.Icu.Text.TimeZoneFormat.Style * string * Java.Text.ParsePosition * Android.Icu.Util.Output -> Android.Icu.Util.TimeZone
override this.Parse : Android.Icu.Text.TimeZoneFormat.Style * string * Java.Text.ParsePosition * Android.Icu.Util.Output -> Android.Icu.Util.TimeZone

Parameters

style
TimeZoneFormat.Style

the format style

text
String

the text contains a time zone string at the position.

pos
ParsePosition

the position.

timeType
Output

The output argument for receiving the time type (standard/daylight/unknown), or specify null if the information is not necessary.

Returns

A TimeZone, or null if the input could not be parsed.

Attributes

Remarks

Returns a TimeZone by parsing the time zone string according to the parse position, the style and the default parse options. Note: This method is equivalent to parse(style, text, pos, null, timeType).

Android reference for android.icu.text.TimeZoneFormat.parse.

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

Parse(String)

Returns a TimeZone for the given text.

[Android.Runtime.Register("parse", "(Ljava/lang/String;)Landroid/icu/util/TimeZone;", "", ApiSince=24)]
public Android.Icu.Util.TimeZone? Parse(string? text);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;)Landroid/icu/util/TimeZone;", "", ApiSince=24)>]
member this.Parse : string -> Android.Icu.Util.TimeZone

Parameters

text
String

the time zone string

Returns

A TimeZone.

Attributes

Remarks

Returns a TimeZone for the given text.

<b>Note</b>: The behavior of this method is equivalent to #parse(String, ParsePosition).

Java documentation for android.icu.text.TimeZoneFormat.parse(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

Parse(String, ParsePosition)

Returns a TimeZone by parsing the time zone string according to the given parse position.

[Android.Runtime.Register("parse", "(Ljava/lang/String;Ljava/text/ParsePosition;)Landroid/icu/util/TimeZone;", "", ApiSince=24)]
public Android.Icu.Util.TimeZone? Parse(string? text, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;Ljava/text/ParsePosition;)Landroid/icu/util/TimeZone;", "", ApiSince=24)>]
member this.Parse : string * Java.Text.ParsePosition -> Android.Icu.Util.TimeZone

Parameters

text
String

the text contains a time zone string at the position.

pos
ParsePosition

the position.

Returns

A TimeZone, or null if the input could not be parsed.

Attributes

Remarks

Returns a TimeZone by parsing the time zone string according to the given parse position.

<b>Note</b>: This method is equivalent to #parse(Style, String, ParsePosition, EnumSet, Output) parse(Style.GENERIC_LOCATION, text, pos, EnumSet.of(ParseOption.ALL_STYLES), timeType).

Java documentation for android.icu.text.TimeZoneFormat.parse(java.lang.String, java.text.ParsePosition).

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