Duration
Describes the length of a period of a time.
JSON representation |
{
"unit": enum (Unit ),
"count": integer
} |
Fields |
unit |
enum (Unit )
The unit used for the duration
|
count |
integer
number of duration units to be included.
|
Unit
Enums |
UNIT_UNSPECIFIED |
Default value, reserved as an invalid or an unexpected value. |
MONTH |
Unit of a calendar month. |
DAY |
Unit of a day. |
HOUR |
Unit of an hour. It is used for testing. |
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 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["`Duration` describes the length of a period of time using a JSON representation with `unit` and `count` fields."],["`unit` specifies the frequency of the period (e.g., MONTH, DAY, HOUR) and `count` indicates the number of units."],["`UNIT_UNSPECIFIED` is a reserved value for invalid or unexpected cases, while `MONTH`, `DAY`, and `HOUR` represent calendar month, day, and hour respectively."]]],[]]