TimeZone.DSTSavings Property
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.
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")] get; }
[<get: Android.Runtime.Register("getDSTSavings", "()I", "GetGetDSTSavingsHandler")>]
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 returns 3600000 milliseconds (i.e., one hour) if a call to #useDaylightTime()
returns true
. Otherwise, 0 (zero) is returned.
If an underlying TimeZone
implementation subclass supports historical and future Daylight Saving Time schedule changes, this method returns the amount of saving time of the last known Daylight Saving Time rule that can be a future prediction.
If the amount of saving time at any given time stamp is required, construct a Calendar
with this TimeZone
and the time stamp, and call Calendar#get(int) Calendar.get
(
Calendar#DST_OFFSET
)
.
Added in 1.4.
Java documentation for java.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.