次の方法で共有


TimeZoneFormat.ParseOffsetISO8601(String, ParsePosition) Method

Definition

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.

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