ZoneOffsetTransition.Of(LocalDateTime, ZoneOffset, 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.
Obtains an instance defining a transition between two offsets.
[Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;)Ljava/time/zone/ZoneOffsetTransition;", "", ApiSince=26)]
public static Java.Time.Zone.ZoneOffsetTransition? Of(Java.Time.LocalDateTime? transition, Java.Time.ZoneOffset? offsetBefore, Java.Time.ZoneOffset? offsetAfter);
[<Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;)Ljava/time/zone/ZoneOffsetTransition;", "", ApiSince=26)>]
static member Of : Java.Time.LocalDateTime * Java.Time.ZoneOffset * Java.Time.ZoneOffset -> Java.Time.Zone.ZoneOffsetTransition
Parameters
- transition
- LocalDateTime
the transition date-time at the transition, which never actually occurs, expressed local to the before offset, not null
- offsetBefore
- ZoneOffset
the offset before the transition, not null
- offsetAfter
- ZoneOffset
the offset at and after the transition, not null
Returns
the transition, not null
- Attributes
Remarks
Obtains an instance defining a transition between two offsets. Applications should normally obtain an instance from ZoneRules. This factory is only intended for use when creating ZoneRules.
Java reference for java.time.zone.ZoneOffsetTransition.of.