Udostępnij za pośrednictwem


TimeZoneFormat.FormatOffsetISO8601Extended Method

Definition

Returns the ISO 8601 extended time zone string for the given offset.

[Android.Runtime.Register("formatOffsetISO8601Extended", "(IZZZ)Ljava/lang/String;", "", ApiSince=24)]
public string? FormatOffsetISO8601Extended (int offset, bool useUtcIndicator, bool isShort, bool ignoreSeconds);
[<Android.Runtime.Register("formatOffsetISO8601Extended", "(IZZZ)Ljava/lang/String;", "", ApiSince=24)>]
member this.FormatOffsetISO8601Extended : int * bool * bool * bool -> string

Parameters

offset
Int32

the offset from GMT(UTC) in milliseconds.

useUtcIndicator
Boolean

true if ISO 8601 UTC indicator "Z" is used when the offset is 0.

isShort
Boolean

true if shortest form is used.

ignoreSeconds
Boolean

true if non-zero offset seconds is appended.

Returns

the ISO 8601 extended format.

Attributes

Remarks

Returns the ISO 8601 extended time zone string for the given offset. For example, "-08:00", "-08:30" and "Z"

Java documentation for android.icu.text.TimeZoneFormat.formatOffsetISO8601Extended(int, boolean, boolean, boolean).

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