ZoneRules.GetStandardOffset(Instant) 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.
Gets the standard offset for the specified instant in this zone.
[Android.Runtime.Register("getStandardOffset", "(Ljava/time/Instant;)Ljava/time/ZoneOffset;", "", ApiSince=26)]
public Java.Time.ZoneOffset? GetStandardOffset(Java.Time.Instant? instant);
[<Android.Runtime.Register("getStandardOffset", "(Ljava/time/Instant;)Ljava/time/ZoneOffset;", "", ApiSince=26)>]
member this.GetStandardOffset : Java.Time.Instant -> Java.Time.ZoneOffset
Parameters
- instant
- Instant
The instant to find the standard offset for. A null value may be ignored; see Remarks.
Returns
The standard offset for the specified instant.
- Attributes
Exceptions
Thrown if instant is null and the implementation requires it to find the standard offset.
Remarks
Gets the standard offset for the specified instant in this zone. This provides access to historic information on how the standard offset has changed over time. The standard offset is the offset before any daylight saving time is applied. This is typically the offset applicable during winter.
When there are no fully defined wall-offset transitions, Android 8 through 13 return the initial standard offset even if standard-offset transitions exist. Android 14 through 17 use the standard-offset transitions. Runtime updates can change this behavior.
Android 8 through 13 ignore a null instant if there are no fully defined wall-offset transitions. Android 14 through 17 ignore it if there are no standard-offset transitions. Runtime updates can change this behavior.
Java reference for java.time.zone.ZoneRules.getStandardOffset.