Share via


TimeZone.UseDaylightTime Method

Definition

Queries if this TimeZone uses Daylight Saving Time.

[Android.Runtime.Register("useDaylightTime", "()Z", "GetUseDaylightTimeHandler")]
public abstract bool UseDaylightTime ();
[<Android.Runtime.Register("useDaylightTime", "()Z", "GetUseDaylightTimeHandler")>]
abstract member UseDaylightTime : unit -> bool

Returns

true if this TimeZone uses Daylight Saving Time, false, otherwise.

Attributes

Remarks

Queries if this TimeZone uses Daylight Saving Time.

If an underlying TimeZone implementation subclass supports historical and future Daylight Saving Time schedule changes, this method refers to the last known Daylight Saving Time rule that can be a future prediction and may not be the same as the current rule. Consider calling #observesDaylightTime() if the current rule should also be taken into account.

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

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