Google Classroom 外掛程式現已全面開放開發人員使用!詳情請參閱
外掛程式說明文件。
TimeOfDay
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
代表一天中的時間。日期和時區並不需要指定,或是在其他位置上指定。API 可選擇允許閏秒。相關類型為 google.type.Date
和 google.protobuf.Timestamp
。
JSON 表示法 |
{
"hours": integer,
"minutes": integer,
"seconds": integer,
"nanos": integer
} |
欄位 |
hours |
integer
一天中的小時,採用 24 小時制。必須大於或等於 0,且通常必須小於或等於 23。API 可選擇允許使用「24:00:00」這類的值來表示營業打烊時間等情況。
|
minutes |
integer
小時內的分鐘。必須大於或等於 0,且小於或等於 59。
|
seconds |
integer
分鐘的秒數。必須大於或等於 0,且通常必須小於或等於 59。如果 API 允許閏秒,則可允許值為 60。
|
nanos |
integer
秒數的小數,以奈秒為單位。必須大於或等於 0,且小於或等於 999,999,999。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# TimeOfDay\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date](/workspace/classroom/reference/rest/v1/Date) and `google.protobuf.Timestamp`.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"hours\": integer, \"minutes\": integer, \"seconds\": integer, \"nanos\": integer } ``` |\n\n| Fields ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `hours` | `integer` Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time. |\n| `minutes` | `integer` Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. |\n| `seconds` | `integer` Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. |\n| `nanos` | `integer` Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. |"]]