TimeZoneFormat.FormatOffsetISO8601Basic 方法

定义

返回给定偏移量的 ISO 8601 基本时区字符串。

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

参数

offset
Int32

与 GMT(UTC)的偏移量(以毫秒为单位)。

useUtcIndicator
Boolean

如果偏移量为 0 时使用 ISO 8601 UTC 指示器“Z”,则为 true。

isShort
Boolean

如果使用最短格式,则为 true。

ignoreSeconds
Boolean

如果追加非零偏移秒,则为 true。

返回

ISO 8601 基本格式。

属性

注解

返回给定偏移量的 ISO 8601 基本时区字符串。 例如,“-08”、“-0830”和“Z”

Java文档android.icu.text.TimeZoneFormat.formatOffsetISO8601Basic(int, boolean, boolean, boolean)

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

适用于