語言

LocalDateTime.Month 屬性

定義

使用 Month enum 取得 month of year 欄位。

public Java.Time.Month? Month { [Android.Runtime.Register("getMonth", "()Ljava/time/Month;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMonth", "()Ljava/time/Month;", "", ApiSince=26)>]
member this.Month : Java.Time.Month

屬性值

年份月份,而非無

屬性

備註

使用 Month enum 取得 month of year 欄位。 此方法回傳該月份的 enum 月份。 這樣可以避免對 int 值的意義產生混淆。 如果你需要取得原始整數值,列舉會提供整數值。

Java 參考 java.time.LocalDateTime.getMonth

適用於