Share via


Calendar.TemporalMonthCode Property

Definition

Gets The Temporal monthCode value corresponding to the month for the date. -or- Sets The Temporal monthCode which is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year and suffixed by an optional literal grapheme "L" if this is a leap month in a lunisolar calendar.

public virtual string? TemporalMonthCode { [Android.Runtime.Register("getTemporalMonthCode", "()Ljava/lang/String;", "GetGetTemporalMonthCodeHandler", ApiSince=36)] get; [Android.Runtime.Register("setTemporalMonthCode", "(Ljava/lang/String;)V", "GetSetTemporalMonthCode_Ljava_lang_String_Handler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("getTemporalMonthCode", "()Ljava/lang/String;", "GetGetTemporalMonthCodeHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setTemporalMonthCode", "(Ljava/lang/String;)V", "GetSetTemporalMonthCode_Ljava_lang_String_Handler", ApiSince=36)>]
member this.TemporalMonthCode : string with get, set

Property Value

One of 25 possible strings in {"M01".."M13", "M01L".."M12L"}.

Attributes

Remarks

Property getter documentation:

Gets The Temporal monthCode value corresponding to the month for the date. The value is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year and suffixed by an optional literal grapheme "L" if this is a leap month in a lunisolar calendar. The 25 possible values are "M01" .. "M13" and "M01L" .. "M12L". For the Hebrew calendar, the values are "M01" .. "M12" for non-leap year, and "M01" .. "M05", "M05L", "M06" .. "M12" for leap year. For the Chinese calendar, the values are "M01" .. "M12" for non-leap year and in leap year with another monthCode in "M01L" .. "M12L". For Coptic and Ethiopian calendar, the Temporal monthCode values for any years are "M01" to "M13".

Java documentation for android.icu.util.Calendar.getTemporalMonthCode().

Property setter documentation:

Sets The Temporal monthCode which is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year and suffixed by an optional literal grapheme "L" if this is a leap month in a lunisolar calendar. The 25 possible values are "M01" .. "M13" and "M01L" .. "M12L". For Hebrew calendar, the values are "M01" .. "M12" for non-leap years, and "M01" .. "M05", "M05L", "M06" .. "M12" for leap year. For the Chinese calendar, the values are "M01" .. "M12" for non-leap year and in leap year with another monthCode in "M01L" .. "M12L". For Coptic and Ethiopian calendar, the Temporal monthCode values for any years are "M01" to "M13".

Java documentation for android.icu.util.Calendar.setTemporalMonthCode(java.lang.String).

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