Udostępnij za pośrednictwem


TimeZoneFormat Class

Definition

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
TimeZoneFormat
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

TimeZoneFormat(IntPtr, JniHandleOwnership)
TimeZoneFormat(ULocale)

The protected constructor for subclassing.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
DefaultParseOptions

Returns the default parse options used by this TimeZoneFormat instance.

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 (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass
ThresholdType
TimeZoneNames

Returns the time zone display name data used by this instance.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from _Format)
CloneAsThawed()

To be added

Dispose() (Inherited from Object)
Dispose(Boolean) (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 AttributedCharacterIterator.

(Inherited from _Format)
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 TimeZoneFormat for the given java.util.Locale.

GetInstance(ULocale)

Returns a frozen instance of TimeZoneFormat for the given locale.

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 TimeZone by parsing the time zone string according to the given parse position.

Parse(String)

Returns a TimeZone for the given text.

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>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (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

IFreezable.CloneAsThawed()
IFreezable.Freeze()
IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to