OffsetDateTime.MonthValue 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可以取得月份和年份欄位,範圍從1到12。
public int MonthValue { [Android.Runtime.Register("getMonthValue", "()I", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMonthValue", "()I", "", ApiSince=26)>]
member this.MonthValue : int
屬性值
年份月份,從1到12
- 屬性
備註
可以取得月份和年份欄位,範圍從1到12。
此方法會將月份 int 從 1 回傳到 12。 如果使用枚舉 Month , #getMonth()應用程式代碼通常會更清晰。
Java 文件 java.time.OffsetDateTime.getMonthValue()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。