Java.Util.TimeZone Members

The members of Java.Util.TimeZone are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

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

Public Fields

const
LongTimeZoneStyle (1). The long display name style, such as Pacific Daylight Time.
const
ShortTimeZoneStyle (0). The short display name style, such as PDT.

Public Properties

static
DefaultTimeZone. Returns the user's preferred time zone.
[read-only]
DisplayNamestring. Equivalent to getDisplayName(false, TimeZone.LONG, Locale.getDefault()).
[read-only]
DSTSavingsint. Returns the latest daylight savings in milliseconds for this time zone, relative to this time zone's regular UTC offset (as returned by TimeZone.RawOffset).
IDstring. Returns the ID of this TimeZone, such as America/Los_Angeles, GMT-08:00 or UTC.
abstract
RawOffsetint. Returns the offset in milliseconds from UTC of this time zone's standard time.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clone() : Java.Lang.Object
Returns a new time zone with the same ID, raw offset, and daylight savings time rules as this time zone.
static
GetAvailableIDs() : string[]
Returns the system's installed time zone IDs.
static
GetAvailableIDs(int) : string[]
Returns the IDs of the time zones whose offset from UTC is offsetMillis.
GetDisplayName(Locale) : string
Equivalent to getDisplayName(false, TimeZone.LONG, locale).
GetDisplayName(bool, TimeZoneStyle) : string
Equivalent to getDisplayName(daylightTime, style, Locale.getDefault()).
GetDisplayName(bool, TimeZoneStyle, Locale) : string
Returns the TimeZone.Short or TimeZone.Long name of this time zone with either standard or daylight time, as written in locale.
GetOffset(long) : int
Returns the offset in milliseconds from UTC for this time zone at time.
abstract
GetOffset(int, int, int, int, int, int) : int
Returns this time zone's offset in milliseconds from UTC at the specified date and time.
static
GetTimeZone(string) : TimeZone
Returns a TimeZone corresponding to the given id, or GMT for unknown ids.
HasSameRules(TimeZone) : bool
Returns true if timeZone has the same rules as this time zone.
abstract
InDaylightTime(Date) : bool
Returns true if time is in a daylight savings time period for this time zone.
ObservesDaylightTime() : bool
Documentation for this section has not yet been entered.
abstract
UseDaylightTime() : bool
Returns true if this time zone has a future transition to or from daylight savings time.