TimeZone.ObservesDaylightTime Method

Definition

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.

[Android.Runtime.Register("observesDaylightTime", "()Z", "GetObservesDaylightTimeHandler", ApiSince=24)]
public virtual bool ObservesDaylightTime ();
[<Android.Runtime.Register("observesDaylightTime", "()Z", "GetObservesDaylightTimeHandler", ApiSince=24)>]
abstract member ObservesDaylightTime : unit -> bool
override this.ObservesDaylightTime : unit -> bool

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; false otherwise.

Attributes

Remarks

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.

The default implementation returns true if useDaylightTime() or inDaylightTime(new Date()) returns true.

Added in 1.7.

Java documentation for java.util.TimeZone.observesDaylightTime().

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.

Applies to