Compartilhar via


Month.Of(Int32) Method

Definition

Obtains an instance of Month from an int value.

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

Parameters

month
Int32

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

Returns

the month-of-year, not null

Attributes

Remarks

Obtains an instance of Month from an int value.

Month is an enum representing the 12 months of the year. This factory allows the enum to be obtained from the int value. The int value follows the ISO-8601 standard, from 1 (January) to 12 (December).

Java documentation for java.time.Month.of(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to