TimeZone.UseDaylightTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Queries if this time zone uses daylight savings time.
[Android.Runtime.Register("useDaylightTime", "()Z", "GetUseDaylightTimeHandler", ApiSince=24)]
public abstract bool UseDaylightTime ();
[<Android.Runtime.Register("useDaylightTime", "()Z", "GetUseDaylightTimeHandler", ApiSince=24)>]
abstract member UseDaylightTime : unit -> bool
Returns
true if this time zone uses daylight savings time,
false, otherwise.
<p><strong>Note:</strong>The default implementation of
ICU TimeZone uses the tz database, which supports historic
rule changes, for system time zones. With the implementation,
there are time zones that used daylight savings time in the
past, but no longer used currently. For example, Asia/Tokyo has
never used daylight savings time since 1951. Most clients would
expect that this method to return false
for such case.
The default implementation of this method returns true
when the time zone uses daylight savings time in the current
(Gregorian) calendar year.
- Attributes
Remarks
Queries if this time zone uses daylight savings time.
Java documentation for android.icu.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.