Interval
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Représente un intervalle de temps, encodé sous la forme d'un début de code temporel (inclus) et d'une fin d'horodatage (exclusif).
Le début doit être inférieur ou égal à la fin. Lorsque le début est égal à la fin, l'intervalle est vide (ne correspond à aucune heure). Lorsque le début et la fin ne sont pas spécifiés, l'intervalle correspond à n'importe quel moment.
Représentation JSON |
{
"startTime": string,
"endTime": string
} |
Champs |
startTime |
string (Timestamp format)
Facultatif. Début inclusif de l'intervalle. S'il est spécifié, le code temporel correspondant à cet intervalle doit être identique ou postérieure au début.
|
endTime |
string (Timestamp format)
Facultatif. Fin exclusive de l'intervalle. Si cet intervalle est spécifié, un code temporel correspondant à cet intervalle devra être antérieur à la fin.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/31 (UTC).
[null,null,["Dernière mise à jour le 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. |"]]