Language

TimeZone.RawOffset Property

Definition

Returns the offset in milliseconds from UTC of this time zone's standard time.

public abstract int RawOffset { [Android.Runtime.Register("getRawOffset", "()I", "GetGetRawOffsetHandler")] get; [Android.Runtime.Register("setRawOffset", "(I)V", "GetSetRawOffset_IHandler")] set; }
[<get: Android.Runtime.Register("getRawOffset", "()I", "GetGetRawOffsetHandler")>]
[<set: Android.Runtime.Register("setRawOffset", "(I)V", "GetSetRawOffset_IHandler")>]
member this.RawOffset : int with get, set

Property Value

the amount of raw offset time in milliseconds to add to UTC.

Attributes

Remarks

Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. Because this value is not affected by daylight saving time, it is called raw offset. If an underlying TimeZone implementation subclass supports historical GMT offset changes, the method returns the raw offset value of the current date. In Honolulu, for example, its raw offset changed from GMT-10:30 to GMT-10:00 in 1947, and this method always returns -36000000 milliseconds (i.e., -10 hours).

Java reference for java.util.TimeZone.getRawOffset.

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