TimeZoneFormat.FormatOffsetLocalizedGMT(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the localized GMT(UTC) offset format for the given offset.
[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
Parameters
- offset
- Int32
the offset from GMT(UTC) in milliseconds.
Returns
the localized GMT format string
- Attributes
Remarks
Returns the localized GMT(UTC) offset format for the given offset. The localized GMT offset is defined by; <ul> <li>GMT format pattern (e.g. "GMT {0}" - see #getGMTPattern()
) <li>Offset time pattern (e.g. "+HH:mm" - see #getGMTOffsetPattern(GMTOffsetPatternType)
) <li>Offset digits (e.g. "0123456789" - see #getGMTOffsetDigits()
) <li>GMT zero format (e.g. "GMT" - see #getGMTZeroFormat()
) </ul> This format always uses 2 digit hours and minutes. When the given offset has non-zero seconds, 2 digit seconds field will be appended. For example, GMT+05:00 and GMT+05:28:06.
Java documentation for android.icu.text.TimeZoneFormat.formatOffsetLocalizedGMT(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.