TimeZoneFormat.ParseOffsetISO8601(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 ISO 8601 basic or extended time zone string.
[Android.Runtime.Register("parseOffsetISO8601", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "", ApiSince=24)]
public int ParseOffsetISO8601 (string? text, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parseOffsetISO8601", "(Ljava/lang/String;Ljava/text/ParsePosition;)I", "", ApiSince=24)>]
member this.ParseOffsetISO8601 : string * Java.Text.ParsePosition -> int
Parameters
- text
- String
the text contains ISO 8601 style time zone string (e.g. "-08", "-0800", "-08:00", and "Z") at the position.
- pos
- ParsePosition
the position.
Returns
the offset from GMT(UTC) in milliseconds for the given ISO 8601 style time zone string.
- Attributes
Remarks
Returns offset from GMT(UTC) in milliseconds for the given ISO 8601 basic or extended time zone string. When the given string is not an ISO 8601 time zone string, 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.