TimeZoneFormat Class
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.
TimeZoneFormat supports time zone display name formatting and parsing.
[Android.Runtime.Register("android/icu/text/TimeZoneFormat", ApiSince=24, DoNotGenerateAcw=true)]
public class TimeZoneFormat : Android.Icu.Text.UFormat, Android.Icu.Util.IFreezable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/icu/text/TimeZoneFormat", ApiSince=24, DoNotGenerateAcw=true)>]
type TimeZoneFormat = class
inherit UFormat
interface IFreezable
interface ICloneable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
interface ISerializable
- Inheritance
- Attributes
- Implements
Remarks
TimeZoneFormat supports time zone display name formatting and parsing. An instance of TimeZoneFormat works as a subformatter of SimpleDateFormat, but you can also directly get a new instance of TimeZoneFormat and formatting/parsing time zone display names.
ICU implements the time zone display names defined by UTS#35 Unicode Locale Data Markup Language (LDML). TimeZoneNames represents the time zone display name data model and this class implements the algorithm for actual formatting and parsing.
Java documentation for android.icu.text.TimeZoneFormat.
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.
Constructors
| Name | Description |
|---|---|
| TimeZoneFormat(IntPtr, JniHandleOwnership) | |
| TimeZoneFormat(ULocale) |
The protected constructor for subclassing. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| DefaultParseOptions |
Returns the default parse options used by this |
| GMTOffsetDigits |
Returns the decimal digit characters used for localized GMT format in a single string containing from 0 to 9 in the ascending order. |
| GMTPattern |
Returns the localized GMT format pattern. |
| GMTZeroFormat |
Returns the localized GMT format string for GMT(UTC) itself (GMT offset is 0). |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| IsFrozen |
To be added |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniPeerMembers | |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass | |
| ThresholdType | |
| TimeZoneNames |
Returns the time zone display name data used by this instance. |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from _Format) |
| CloneAsThawed() |
To be added |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| Format(Object, StringBuffer, FieldPosition) |
To be added |
| Format(Object) |
Formats an object to produce a string. (Inherited from _Format) |
| Format(TimeZoneFormat+Style, TimeZone, Int64, Output) | |
| Format(TimeZoneFormat+Style, TimeZone, Int64) | |
| FormatOffsetISO8601Basic(Int32, Boolean, Boolean, Boolean) |
Returns the ISO 8601 basic time zone string for the given offset. |
| FormatOffsetISO8601Extended(Int32, Boolean, Boolean, Boolean) |
Returns the ISO 8601 extended time zone string for the given offset. |
| FormatOffsetLocalizedGMT(Int32) |
Returns the localized GMT(UTC) offset format for the given offset. |
| FormatOffsetShortLocalizedGMT(Int32) |
Returns the short localized GMT(UTC) offset format for the given offset. |
| FormatToCharacterIterator(Object) |
Formats an Object producing an |
| Freeze() |
To be added |
| GetGMTOffsetPattern(TimeZoneFormat+GMTOffsetPatternType) | |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetInstance(Locale) |
Returns a frozen instance of |
| GetInstance(ULocale) |
Returns a frozen instance of |
| JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| Parse(String, ParsePosition) |
Returns a |
| Parse(String) |
Returns a |
| Parse(TimeZoneFormat+Style, String, ParsePosition, EnumSet, Output) | |
| Parse(TimeZoneFormat+Style, String, ParsePosition, Output) | |
| ParseObject(String, ParsePosition) |
To be added |
| ParseObject(String) |
Parses text from the beginning of the given string to produce an object. (Inherited from _Format) |
| ParseOffsetISO8601(String, ParsePosition) |
Returns offset from GMT(UTC) in milliseconds for the given ISO 8601 basic or extended time zone string. |
| ParseOffsetLocalizedGMT(String, ParsePosition) |
Returns offset from GMT(UTC) in milliseconds for the given localized GMT offset format string. |
| ParseOffsetShortLocalizedGMT(String, ParsePosition) |
Returns offset from GMT(UTC) in milliseconds for the given short localized GMT offset format string. |
| SetDefaultParseOptions(EnumSet) |
Sets the default parse options. |
| SetGMTOffsetDigits(String) |
Sets the decimal digit characters used for localized GMT format. |
| SetGMTOffsetPattern(TimeZoneFormat+GMTOffsetPatternType, String) | |
| SetGMTPattern(String) |
Sets the localized GMT format pattern. |
| SetGMTZeroFormat(String) |
Sets the localized GMT format string for GMT(UTC) itself (GMT offset is 0). |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetTimeZoneNames(TimeZoneNames) |
Sets the time zone display name data to this instance. |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IFreezable.CloneAsThawed() | |
| IFreezable.Freeze() | |
| IJavaPeerable.Disposed() |
Notifies the interop runtime that this managed peer has been disposed. (Inherited from Object) |
| IJavaPeerable.DisposeUnlessReferenced() |
Releases this Java peer unless it is retained by another managed reference. (Inherited from Object) |
| IJavaPeerable.Finalized() |
Notifies the interop runtime that this managed peer has been finalized. (Inherited from Object) |
| IJavaPeerable.JniManagedPeerState |
Gets the state that describes the relationship between this managed peer and its JNI reference. (Inherited from Object) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Sets the interop identity hash code for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Sets the managed and JNI peer state for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Sets the JNI object reference used by this managed peer. (Inherited from Object) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |