TimeRange
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
时间范围。数据将以半开倒数形式(即 [startTime, endTime])提取。
JSON 表示法 |
{
"startTime": string,
"endTime": string
} |
字段 |
startTime |
string (Timestamp format)
范围(含边界值)起始的纪元时间戳。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒,最多九个小数位。示例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
endTime |
string (Timestamp format)
范围结束的纪元时间戳(不含)。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒,最多九个小数位。示例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe Time Range is defined by a start and end time, represented in JSON format using the \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eData is extracted within a half-open interval, including the \u003ccode\u003estartTime\u003c/code\u003e but excluding the \u003ccode\u003eendTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e utilize the RFC3339 UTC "Zulu" format with nanosecond resolution for precision.\u003c/p\u003e\n"],["\u003cp\u003eThe Time Range leverages Google Protocol Buffers' Timestamp format for consistent and standardized representation.\u003c/p\u003e\n"]]],["Data is retrieved over a time range defined by a half-open interval, \\[startTime, endTime). The JSON representation includes `startTime` and `endTime` fields, both strings in RFC3339 UTC \"Zulu\" timestamp format. `startTime` marks the inclusive beginning of the range, and `endTime` marks the exclusive end. These timestamps use nanosecond resolution with up to nine fractional digits, as demonstrated by the given examples.\n"],null,["# TimeRange\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA range of time. Data will be pulled over the range as a half-open inverval (that is, \\[startTime, endTime)).\n\n| JSON representation ||\n|----------------------------------------------------|---|\n| ``` { \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Epoch timestamp for the start of the range (inclusive). A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `endTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Epoch timestamp for the end of the range (exclusive). A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |"]]