Language

ZoneOffsetTransitionRule.Of Method

Definition

Obtains an instance defining the yearly rule to create transitions between two offsets.

[Android.Runtime.Register("of", "(Ljava/time/Month;ILjava/time/DayOfWeek;Ljava/time/LocalTime;ZLjava/time/zone/ZoneOffsetTransitionRule$TimeDefinition;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;)Ljava/time/zone/ZoneOffsetTransitionRule;", "", ApiSince=26)]
public static Java.Time.Zone.ZoneOffsetTransitionRule? Of(Java.Time.Month? month, int dayOfMonthIndicator, Java.Time.DayOfWeek? dayOfWeek, Java.Time.LocalTime? time, bool timeEndOfDay, Java.Time.Zone.ZoneOffsetTransitionRule.TimeDefinition? timeDefinition, Java.Time.ZoneOffset? standardOffset, Java.Time.ZoneOffset? offsetBefore, Java.Time.ZoneOffset? offsetAfter);
[<Android.Runtime.Register("of", "(Ljava/time/Month;ILjava/time/DayOfWeek;Ljava/time/LocalTime;ZLjava/time/zone/ZoneOffsetTransitionRule$TimeDefinition;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;Ljava/time/ZoneOffset;)Ljava/time/zone/ZoneOffsetTransitionRule;", "", ApiSince=26)>]
static member Of : Java.Time.Month * int * Java.Time.DayOfWeek * Java.Time.LocalTime * bool * Java.Time.Zone.ZoneOffsetTransitionRule.TimeDefinition * Java.Time.ZoneOffset * Java.Time.ZoneOffset * Java.Time.ZoneOffset -> Java.Time.Zone.ZoneOffsetTransitionRule

Parameters

month
Month

the month of the month-day of the first day of the cutover week, not null

dayOfMonthIndicator
Int32

the day of the month-day of the cutover week, positive if the week is that day or later, negative if the week is that day or earlier, counting from the last day of the month, from -28 to 31 excluding 0

dayOfWeek
DayOfWeek

the required day-of-week, null if the month-day should not be changed

time
LocalTime
timeEndOfDay
Boolean

whether the time is midnight at the end of day

timeDefinition
ZoneOffsetTransitionRule.TimeDefinition

how to interpret the cutover

standardOffset
ZoneOffset

the standard offset in force at the cutover, not null

offsetBefore
ZoneOffset

the offset before the cutover, not null

offsetAfter
ZoneOffset

the offset after the cutover, not null

Returns

the rule, not null

Attributes

Remarks

Obtains an instance defining the yearly rule to create transitions 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.ZoneOffsetTransitionRule.of.

Applies to