ZoneRules.GetDaylightSavings(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 amount of daylight savings in use for the specified instant in this zone.
[Android.Runtime.Register("getDaylightSavings", "(Ljava/time/Instant;)Ljava/time/Duration;", "", ApiSince=26)]
public Java.Time.Duration? GetDaylightSavings(Java.Time.Instant? instant);
[<Android.Runtime.Register("getDaylightSavings", "(Ljava/time/Instant;)Ljava/time/Duration;", "", ApiSince=26)>]
member this.GetDaylightSavings : Java.Time.Instant -> Java.Time.Duration
Parameters
- instant
- Instant
The instant to find the daylight savings for. Fixed-offset rules may ignore null; variable rules do not.
Returns
The difference between the standard offset and the actual offset in use at the specified instant.
- Attributes
Exceptions
Thrown if instant is null and the rules are not fixed-offset.