Interval
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
타임스탬프 시작 (포함) 및 타임스탬프 종료 (제외)로 인코딩된 시간 간격을 나타냅니다.
시작 시간은 끝보다 작거나 같아야 합니다. 시작이 끝과 같으면 간격은 비어 있습니다 (시간과 일치하지 않음). 시작과 끝이 모두 지정되지 않으면 간격은 항상 일치합니다.
JSON 표현 |
{
"startTime": string,
"endTime": string
} |
필드 |
startTime |
string (Timestamp format)
선택사항입니다. 포함 간격의 시작입니다. 지정된 경우 이 간격과 일치하는 타임스탬프는 시작과 같거나 그 이후의 타임스탬프여야 합니다.
|
endTime |
string (Timestamp format)
선택사항입니다. 간격의 끝(제외)입니다. 지정된 경우 이 간격과 일치하는 타임스탬프가 끝부분 이전이어야 합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\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. |"]]