Enum Month
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
月
列舉代表一年中的月份。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Base.Month.JANUARY
。
屬性
屬性 | 類型 | 說明 |
JANUARY | Enum | 1 月 (第 1 個月)。 |
FEBRUARY | Enum | 2 月 (第 2 個月)。 |
MARCH | Enum | 3 月 (第 3 個月)。 |
APRIL | Enum | 4 月 (第 4 個月)。 |
MAY | Enum | 5 月 (第 5 個月)。 |
JUNE | Enum | 6 月 (第 6 個月)。 |
JULY | Enum | 7 月 (月 7 日)。 |
AUGUST | Enum | 8 月 (月 8 日)。 |
SEPTEMBER | Enum | 9 月 (第 9 個月)。 |
OCTOBER | Enum | 10 月 (月 10 日)。 |
NOVEMBER | Enum | 11 月 (月 11 日)。 |
DECEMBER | Enum | 12 月 (月 12 日)。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eMonth\u003c/code\u003e is an enum that represents the twelve months of the year.\u003c/p\u003e\n"],["\u003cp\u003eTo access a specific month, use the syntax \u003ccode\u003eBase.Month.[MONTH_NAME]\u003c/code\u003e, for example, \u003ccode\u003eBase.Month.JANUARY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach month is represented by an \u003ccode\u003eEnum\u003c/code\u003e property within the \u003ccode\u003eMonth\u003c/code\u003e enum, providing a standardized way to refer to specific months.\u003c/p\u003e\n"]]],[],null,["# Enum Month\n\nMonth\n\nAn enum representing the months of the year.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nBase.Month.JANUARY`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|----------------------|\n| `JANUARY` | `Enum` | January (month 1). |\n| `FEBRUARY` | `Enum` | February (month 2). |\n| `MARCH` | `Enum` | March (month 3). |\n| `APRIL` | `Enum` | April (month 4). |\n| `MAY` | `Enum` | May (month 5). |\n| `JUNE` | `Enum` | June (month 6). |\n| `JULY` | `Enum` | July (month 7). |\n| `AUGUST` | `Enum` | August (month 8). |\n| `SEPTEMBER` | `Enum` | September (month 9). |\n| `OCTOBER` | `Enum` | October (month 10). |\n| `NOVEMBER` | `Enum` | November (month 11). |\n| `DECEMBER` | `Enum` | December (month 12). |"]]