YearMonth.Of Method

Definition

Overloads

Name Description
Of(Int32, Month)

Obtains an instance of YearMonth from a year and month.

Of(Int32, Int32)

Obtains an instance of YearMonth from a year and month.

Of(Int32, Month)

Obtains an instance of YearMonth from a year and month.

[Android.Runtime.Register("of", "(ILjava/time/Month;)Ljava/time/YearMonth;", "", ApiSince=26)]
public static Java.Time.YearMonth? Of(int year, Java.Time.Month? month);
[<Android.Runtime.Register("of", "(ILjava/time/Month;)Ljava/time/YearMonth;", "", ApiSince=26)>]
static member Of : int * Java.Time.Month -> Java.Time.YearMonth

Parameters

year
Int32

the year to represent, from MIN_YEAR to MAX_YEAR

month
Month

the month-of-year to represent, not null

Returns

the year-month, not null

Attributes

Remarks

Obtains an instance of YearMonth from a year and month.

Java reference for java.time.YearMonth.of.

Applies to

Of(Int32, Int32)

Obtains an instance of YearMonth from a year and month.

[Android.Runtime.Register("of", "(II)Ljava/time/YearMonth;", "", ApiSince=26)]
public static Java.Time.YearMonth? Of(int year, int month);
[<Android.Runtime.Register("of", "(II)Ljava/time/YearMonth;", "", ApiSince=26)>]
static member Of : int * int -> Java.Time.YearMonth

Parameters

year
Int32

the year to represent, from MIN_YEAR to MAX_YEAR

month
Int32

the month-of-year to represent, from 1 (January) to 12 (December)

Returns

the year-month, not null

Attributes

Remarks

To be added.

Java reference for java.time.YearMonth.of.

Applies to