DateTimeInterval
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงช่วงเวลาระหว่างจุด DateTime 2 จุด
ฟิลด์ timeZone ของทั้ง startTime และ endTime ต้องตรงกัน
การแสดง JSON |
{
"startTime": {
object (DateTime )
},
"endTime": {
object (DateTime )
}
} |
ช่อง |
startTime |
object (DateTime )
จุดข้อมูลเริ่มต้นของช่วงเวลา (รวมวันที่เริ่มต้น) เขตเวลาของจุดสิ้นสุดต้องตรงกับเขตเวลาของจุดเริ่มต้น
|
endTime |
object (DateTime )
จุดข้อมูลสิ้นสุดของช่วงเวลา (ไม่รวม) เขตเวลาของจุดสิ้นสุดต้องตรงกับเขตเวลาของจุดเริ่มต้น
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eRepresents an interval between two DateTime points, requiring matching time zones for both start and end times.\u003c/p\u003e\n"],["\u003cp\u003eIncludes \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields, both utilizing the DateTime object for specifying the interval's boundaries.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estartTime\u003c/code\u003e is inclusive, while the \u003ccode\u003eendTime\u003c/code\u003e is exclusive, indicating the range of the interval.\u003c/p\u003e\n"]]],["The core content describes a time interval defined by a start and end time. Both `startTime` and `endTime` are DateTime objects. The JSON representation shows these as the key fields. The time zone of the `endTime` must correspond to the timezone of the `startTime`. The interval's `startTime` is inclusive, and the `endTime` is exclusive.\n"],null,["# DateTimeInterval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents an interval between two DateTime points.\n\nThe timeZone field of both startTime and endTime must match.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"startTime\": { object (/play/developer/reporting/reference/rest/Shared.Types/DateTime) }, \"endTime\": { object (/play/developer/reporting/reference/rest/Shared.Types/DateTime) } } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startTime` | `object (`[DateTime](/play/developer/reporting/reference/rest/Shared.Types/DateTime)`)` Starting datapoint of the interval (inclusive). The timezone of the end point must match the timezone of the start point. |\n| `endTime` | `object (`[DateTime](/play/developer/reporting/reference/rest/Shared.Types/DateTime)`)` Ending datapoint of the interval (exclusive). The timezone of the end point must match the timezone of the start point. |"]]