Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
Package google.type
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
日期
代表完整或部分日曆的日期,例如生日。您可在其他位置指定日期和時間,或沒有其他選擇。日期以公曆為相對於公曆。可能代表下列其中一種:
- 完整日期,具有非零的年、月和日值。
- 月和日,出現零年 (例如週年紀念日)。
- 一個自己的年,分別為 0 個月和 0 天。
- 年份和月份,數字為零 (例如信用卡到期日)。
相關類型:
| 欄位 |
year |
int32
日期的年份。必須為 1 到 9999,或是 0 才能指定不含年份的日期。
|
month |
int32
一年中的月份。必須為 1 到 12 或 0,才能指定不含月份和日的年份。
|
day |
int32
一個月中的第幾天。值必須介於 1 到 31 之間,且為該年和月份計算而得;設為 0 可以只指定年份,也可以只指定年份和月份,但日期可不算。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The core content defines the `Date` message, representing a calendar date in the Gregorian Calendar. It can represent a full date, month and day, year alone, or year and month. Key actions include specifying `year` (1-9999 or 0), `month` (1-12 or 0), and `day` (1-31 or 0). These values define the level of detail. Related types are also presented.\n"]]