TimeZoneFormat.Parse 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
Parse(String) |
Returns a |
Parse(String, ParsePosition) |
Returns a |
Parse(TimeZoneFormat+Style, String, ParsePosition, Output) | |
Parse(TimeZoneFormat+Style, String, ParsePosition, EnumSet, Output) |
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)
.
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)
[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
- text
- String
- pos
- ParsePosition
- timeType
- Output
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
Parse(TimeZoneFormat+Style, String, ParsePosition, EnumSet, Output)
[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
- text
- String
- pos
- ParsePosition
- options
- EnumSet
- timeType
- Output
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.