語言

TimeZoneFormat.FormatOffsetShortLocalizedGMT(Int32) 方法

定義

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

[Android.Runtime.Register("formatOffsetShortLocalizedGMT", "(I)Ljava/lang/String;", "GetFormatOffsetShortLocalizedGMT_IHandler", ApiSince=24)]
public virtual string? FormatOffsetShortLocalizedGMT(int offset);
[<Android.Runtime.Register("formatOffsetShortLocalizedGMT", "(I)Ljava/lang/String;", "GetFormatOffsetShortLocalizedGMT_IHandler", ApiSince=24)>]
abstract member FormatOffsetShortLocalizedGMT : int -> string
override this.FormatOffsetShortLocalizedGMT : 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+5 和 GMT+530。

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

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

適用於