SimpleTimeZone Class

Definition

<code>SimpleTimeZone</code> is a concrete subclass of <code>TimeZone</code> that represents a time zone for use with a Gregorian calendar.

[Android.Runtime.Register("java/util/SimpleTimeZone", DoNotGenerateAcw=true)]
public class SimpleTimeZone : Java.Util.TimeZone
[<Android.Runtime.Register("java/util/SimpleTimeZone", DoNotGenerateAcw=true)>]
type SimpleTimeZone = class
    inherit TimeZone
Inheritance
SimpleTimeZone
Attributes

Remarks

Java documentation for java.util.SimpleTimeZone.

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

SimpleTimeZone(Int32, String)

Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

Long
Obsolete.

A style specifier for <code>getDisplayName()</code> indicating a long name, such as "Pacific Standard Time.

(Inherited from TimeZone)
Short
Obsolete.

A style specifier for <code>getDisplayName()</code> indicating a short name, such as "PST.

(Inherited from TimeZone)
StandardTime
Obsolete.

Constant for a mode of start or end time specified as standard time.

UtcTime
Obsolete.

Constant for a mode of start or end time specified as UTC.

WallTime
Obsolete.

Constant for a mode of start or end time specified as wall clock time.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
DisplayName

Returns a long standard time name of this TimeZone suitable for presentation to the user in the default locale.

(Inherited from TimeZone)
DSTSavings

Returns the amount of time to be added to local standard time to get local wall clock time.

(Inherited from TimeZone)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
ID

Gets the ID of this time zone. -or- Sets the time zone ID.

(Inherited from TimeZone)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
RawOffset

Gets the GMT offset for this time zone. -or- Sets the base time zone offset to GMT.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates a copy of this <code>TimeZone</code>.

(Inherited from TimeZone)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetDisplayName(Boolean, TimeZoneStyle)

Returns a name in the specified style of this TimeZone suitable for presentation to the user in the default locale.

(Inherited from TimeZone)
GetDisplayName(Boolean, TimeZoneStyle, Locale)

Returns the #SHORT short or #LONG long name of this time zone with either standard or daylight time, as written in locale.

(Inherited from TimeZone)
GetDisplayName(Locale)

Returns a long standard time name of this TimeZone suitable for presentation to the user in the specified locale.

(Inherited from TimeZone)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetOffset(Int32, Int32, Int32, Int32, Int32, Int32)

Returns the difference in milliseconds between local time and UTC, taking into account both the raw offset and the effect of daylight saving, for the specified date and time.

GetOffset(Int64)

Returns the offset of this time zone from UTC at the specified date.

(Inherited from TimeZone)
HasSameRules(TimeZone)

Returns true if this zone has the same rule and offset as another zone.

(Inherited from TimeZone)
InDaylightTime(Date)

Queries if the given date is in daylight saving time.

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)
ObservesDaylightTime()

Returns true if this TimeZone is currently in Daylight Saving Time, or if a transition from Standard Time to Daylight Saving Time occurs at any future time.

(Inherited from TimeZone)
SetDSTSavings(Int32)

Sets the amount of time in milliseconds that the clock is advanced during daylight saving time.

SetEndRule(Int32, Int32, Int32)

Sets the daylight saving time end rule to a fixed date within a month.

SetEndRule(Int32, Int32, Int32, Int32)

Sets the daylight saving time end rule.

SetEndRule(Int32, Int32, Int32, Int32, Boolean)

Sets the daylight saving time end rule to a weekday before or after the given date within a month, e.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetStartRule(Int32, Int32, Int32)

Sets the daylight saving time start rule to a fixed date within a month.

SetStartRule(Int32, Int32, Int32, Int32)

Sets the daylight saving time start rule.

SetStartRule(Int32, Int32, Int32, Int32, Boolean)

Sets the daylight saving time start rule to a weekday before or after the given date within a month, e.

SetStartYear(Int32)

Sets the daylight saving time starting year.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
UseDaylightTime()

Queries if this time zone uses daylight saving time.

Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

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)

Applies to