TimeZoneFormat.ParseOffsetLocalizedGMT(String, ParsePosition) 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.
Returns offset from GMT(UTC) in milliseconds for the given localized GMT offset format string.
[Android.Runtime.Register("parseOffsetLocalizedGMT", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "GetParseOffsetLocalizedGMT_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)]
public virtual int ParseOffsetLocalizedGMT (string? text, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parseOffsetLocalizedGMT", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "GetParseOffsetLocalizedGMT_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)>]
abstract member ParseOffsetLocalizedGMT : string * Java.Text.ParsePosition -> int
override this.ParseOffsetLocalizedGMT : string * Java.Text.ParsePosition -> int
Parameters
- text
- String
the text contains a localized GMT offset string at the position.
- pos
- ParsePosition
the position.
Returns
the offset from GMT(UTC) in milliseconds for the given localized GMT offset format string.
- Attributes
Remarks
Returns offset from GMT(UTC) in milliseconds for the given 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.
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.