Interval
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
代表時間戳記。編碼為開始 (含) 和時間戳記結束 (不含) 的時間間隔。
開頭必須小於或等於結尾。如果開始時間等於結束,則間隔會留空 (比對不相符的時間)。如果您未指定開始和結束,則時間間隔隨時都會比對。
JSON 表示法 |
{
"startTime": string,
"endTime": string
} |
欄位 |
startTime |
string (Timestamp format)
選用設定。包含時間間隔的開始時間。 如有指定,這個間隔的時間戳記必須等於或晚於開始時間。
|
endTime |
string (Timestamp format)
選用設定。排除時段的排除範圍結束。 如有指定,這個間隔的時間戳記必須早於結束時間。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\u003cp\u003eRepresents a time interval with an inclusive start and exclusive end, encoded as Timestamps.\u003c/p\u003e\n"],["\u003cp\u003eStart must be less than or equal to the end; equality implies an empty interval matching no time.\u003c/p\u003e\n"],["\u003cp\u003eUnspecified start and end signify an interval matching any time.\u003c/p\u003e\n"],["\u003cp\u003eThe interval is represented by a JSON object with optional \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields in Timestamp format.\u003c/p\u003e\n"]]],[],null,["# Interval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).\n\nThe start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. |\n| `endTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. |"]]