TimeZoneFormat.FormatOffsetISO8601Extended 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳給定偏移量的 ISO 8601 擴展時區字串。
[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
參數
- offset
- Int32
以毫秒為單位,與GMT(UTC)的偏移量。
- useUtcIndicator
- Boolean
若在偏移為0時使用ISO 8601 UTC指示器「Z」,則為真。
- isShort
- Boolean
若使用最短形式,則為真。
- ignoreSeconds
- Boolean
若附加非零偏移秒數,則為真。
傳回
ISO 8601 擴展格式。
- 屬性
備註
回傳給定偏移量的 ISO 8601 擴展時區字串。 例如,「-08:00」、「-08:30」和「Z」
Java 文件 android.icu.text.TimeZoneFormat.formatOffsetISO8601Extended(int, boolean, boolean, boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。