DateTimeRange
Stay organized with collections
Save and categorize content based on your preferences.
Range of times between two DateTime. For a pointwise date time, use start == end.
google/type/interval.proto serves a similar purpose, but with physical time (we only care about civil time).
JSON representation |
{
"firstDate": {
object (DateTime )
},
"lastDate": {
object (DateTime )
}
} |
Fields |
firstDate |
object (DateTime )
Start of the range.
|
lastDate |
object (DateTime )
End of the range
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Represents a range of times between two DateTime objects, using start and end points."],["For a single point in time, the start and end DateTime values should be the same."],["Uses civil time for representation, similar to `google/type/interval.proto` but focused on civil time rather than physical time."],["Represented in JSON format with `firstDate` and `lastDate` objects, each containing a DateTime object."]]],["This describes a date range using `firstDate` and `lastDate` fields, both represented as DateTime objects. The `firstDate` signifies the start, and `lastDate` the end of the range. Pointwise times use identical start and end dates. The structure is also described as an JSON object with each field including a nested object of type DateTime. This differs from google/type/interval.proto by dealing with civil time instead of physical time.\n"]]