Enum Weekday
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
星期幾
列舉代表星期幾。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Base.Weekday.SUNDAY
。
屬性
屬性 | 類型 | 說明 |
SUNDAY | Enum | 週日。 |
MONDAY | Enum | 星期一。 |
TUESDAY | Enum | 週二。 |
WEDNESDAY | Enum | 週三。 |
THURSDAY | Enum | 週四。 |
FRIDAY | Enum | 週五。 |
SATURDAY | Enum | 相同格式。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-28 (世界標準時間)。
[null,null,["上次更新時間:2025-07-28 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eWeekday\u003c/code\u003e is an enum that represents the seven days of the week.\u003c/p\u003e\n"],["\u003cp\u003eTo access a specific day, use the syntax \u003ccode\u003eBase.Weekday.[DAY]\u003c/code\u003e, replacing \u003ccode\u003e[DAY]\u003c/code\u003e with the desired day (e.g., \u003ccode\u003eBase.Weekday.MONDAY\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach day of the week is represented by a corresponding property within the \u003ccode\u003eWeekday\u003c/code\u003e enum.\u003c/p\u003e\n"]]],[],null,["# Enum Weekday\n\nWeekday\n\nAn enum representing the days of the week.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nBase.Weekday.SUNDAY`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|-------------|\n| `SUNDAY` | `Enum` | Sunday. |\n| `MONDAY` | `Enum` | Monday. |\n| `TUESDAY` | `Enum` | Tuesday. |\n| `WEDNESDAY` | `Enum` | Wednesday. |\n| `THURSDAY` | `Enum` | Thursday. |\n| `FRIDAY` | `Enum` | Friday. |\n| `SATURDAY` | `Enum` | Saturday. |"]]