ZoneOffsetTransition.IsValidOffset(ZoneOffset) 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.
Checks if the specified offset is valid during this transition.
[Android.Runtime.Register("isValidOffset", "(Ljava/time/ZoneOffset;)Z", "", ApiSince=26)]
public bool IsValidOffset(Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("isValidOffset", "(Ljava/time/ZoneOffset;)Z", "", ApiSince=26)>]
member this.IsValidOffset : Java.Time.ZoneOffset -> bool
Parameters
- offset
- ZoneOffset
the offset to check, null returns false
Returns
true if the offset is valid during the transition
- Attributes
Remarks
Checks if the specified offset is valid during this transition. This checks to see if the given offset will be valid at some point in the transition. A gap will always return false. An overlap will return true if the offset is either the before or after offset.
Java reference for java.time.zone.ZoneOffsetTransition.isValidOffset.