語言

TimeZoneFormat.FormatOffsetLocalizedGMT(Int32) 方法

定義

回傳給定偏移量的在地 GMT(UTC) 偏移格式。

[Android.Runtime.Register("formatOffsetLocalizedGMT", "(I)Ljava/lang/String;", "GetFormatOffsetLocalizedGMT_IHandler", ApiSince=24)]
public virtual string? FormatOffsetLocalizedGMT(int offset);
[<Android.Runtime.Register("formatOffsetLocalizedGMT", "(I)Ljava/lang/String;", "GetFormatOffsetLocalizedGMT_IHandler", ApiSince=24)>]
abstract member FormatOffsetLocalizedGMT : int -> string
override this.FormatOffsetLocalizedGMT : int -> string

參數

offset
Int32

以毫秒為單位,與GMT(UTC)的偏移量。

傳回

本地化的 GMT 格式字串

屬性

備註

回傳給定偏移量的在地 GMT(UTC) 偏移格式。 局部的 GMT 偏移定義為:<UL><li>GMT 格式模式(例如「GMT{0}」- 參見#getGMTPattern())li>< 偏移時間模式(例如「+HH:mm」 - 參見#getGMTOffsetPattern(GMTOffsetPatternType))<li>偏移數字(例如「0123456789」 - 參見#getGMTOffsetDigits())li>< GMT 零格式(例如「GMT」 - 參見#getGMTZeroFormat())</ul> 此格式始終使用兩位數小時與分鐘。 當所給的偏移量有非零秒時,會加上兩位數秒欄位。 例如,GMT+05:00 和 GMT+05:28:06。

Java 文件 android.icu.text.TimeZoneFormat.formatOffsetLocalizedGMT(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於