Udostępnij za pośrednictwem


TimeZoneFormat.ParseOffsetShortLocalizedGMT(String, ParsePosition) Method

Definition

Returns offset from GMT(UTC) in milliseconds for the given short localized GMT offset format string.

[Android.Runtime.Register("parseOffsetShortLocalizedGMT", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "GetParseOffsetShortLocalizedGMT_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)]
public virtual int ParseOffsetShortLocalizedGMT (string? text, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parseOffsetShortLocalizedGMT", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "GetParseOffsetShortLocalizedGMT_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)>]
abstract member ParseOffsetShortLocalizedGMT : string * Java.Text.ParsePosition -> int
override this.ParseOffsetShortLocalizedGMT : string * Java.Text.ParsePosition -> int

Parameters

text
String

the text contains a short localized GMT offset string at the position.

pos
ParsePosition

the position.

Returns

the offset from GMT(UTC) in milliseconds for the given short localized GMT offset format string.

Attributes

Remarks

Returns offset from GMT(UTC) in milliseconds for the given short localized GMT offset format string. When the given string cannot be parsed, this method sets the current position as the error index to ParsePosition pos and returns 0.

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