Partager via


TimeZone.DSTSavings Property

Definition

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

public virtual int DSTSavings { [Android.Runtime.Register("getDSTSavings", "()I", "GetGetDSTSavingsHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getDSTSavings", "()I", "GetGetDSTSavingsHandler", ApiSince=24)>]
member this.DSTSavings : int

Property Value

the amount of saving time in milliseconds

Attributes

Remarks

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

The default implementation always returns 3600000 milliseconds (i.e., one hour) if this time zone observes Daylight Saving Time. Otherwise, 0 (zero) is returned.

If an underlying TimeZone implementation subclass supports historical Daylight Saving Time changes, this method returns the known latest daylight saving value.

Java documentation for android.icu.util.TimeZone.getDSTSavings().

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