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()see) <li>偏移时间模式 (例如“+HH:mm” - #getGMTOffsetPattern(GMTOffsetPatternType)see) <li Offset digits (例如“0123456789” - see) <li>>GMT 零格式 (例如“GMT” - see#getGMTOffsetDigits()#getGMTZeroFormat()) </ul> 此格式始终使用 2 位小时和分钟。 当给定偏移量具有非零秒时,将追加 2 位秒字段。 例如,GMT+05:00 和 GMT+05:28:06。

Java文档android.icu.text.TimeZoneFormat.formatOffsetLocalizedGMT(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于