Package google.type
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
TimeOfDay
表示一天中的某个时间。日期和时区不重要,或在别处指定。API 可以选择允许闰秒。相关类型为 google.type.Date 和 google.protobuf.Timestamp。
| 字段 |
hours |
int32
一天中的小时(采用 24 小时制)。值应为 0 到 23。对于业务结束时间等场景,API 可以选择允许“24:00:00”一值。
|
minutes |
int32
一天中某小时的分钟数。值必须是介于 0 和 59 之间的数字。
|
seconds |
int32
时间的秒数部分。通常必须是介于 0 和 59 之间的数字。如果 API 允许闰秒,则 API 可以允许 60 一值。
|
nanos |
int32
秒数的小数部分(以纳秒为单位)。值必须是介于 0 和 999999999 之间的数字。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):2025-07-25。"],[],["The `TimeOfDay` message represents a time, excluding date and time zone. It includes `hours` (0-23, or 24 for closing), `minutes` (0-59), `seconds` (0-59, or 60 for leap-seconds), and `nanos` (0-999,999,999) fields. These fields define the time's components, using a 24-hour format. The message can be used where date and timezone information are irrelevant or defined elsewhere.\n"]]