TimeZoneFormat.FormatOffsetShortLocalizedGMT(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 short localized GMT(UTC) offset format for the given offset.
[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
Parameters
- offset
- Int32
the offset from GMT(UTC) in milliseconds.
Returns
the short localized GMT format string
- Attributes
Remarks
Returns the short localized GMT(UTC) offset format for the given offset. The short 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 uses the shortest representation of offset. The hours field does not have leading zero and lower fields with zero will be truncated. For example, GMT+5 and GMT+530.
Java documentation for android.icu.text.TimeZoneFormat.formatOffsetShortLocalizedGMT(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.