Date
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
表示整个日历日期,例如出生日期。一天中的时间和时区要么在别处指定,要么不重要。日期相对于前公历。日期必须是介于 1 到 9999 之间的有效日历日期。
JSON 表示法 |
{
"year": integer,
"month": integer,
"day": integer
} |
字段 |
year |
integer
某年。必须介于 1 到 9999 之间。
|
month |
integer
日期的月份。必须是 1 和 12 之间的数字。
|
day |
integer
某日。必须介于 1 到 31 之间并且对年份和月份有效。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Date\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.\n\n| JSON representation |\n|---------------------------------------------------------------|\n| ``` { \"year\": integer, \"month\": integer, \"day\": integer } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------|\n| `year` | `integer` Year of date. Must be from 1 to 9999. |\n| `month` | `integer` Month of date. Must be from 1 to 12. |\n| `day` | `integer` Day of month. Must be from 1 to 31 and valid for the year and month. |"]]