browse APIv1_beta.25.0

TimeDuration

The type that defines the fields for a period of time in the time-measurement units supplied.

Type that uses TimeDuration

Calls that use TimeDuration

Fields

Field
Type
Description
unit
An enumeration value that indicates the units (such as hours) of the time span. The enumeration value in this field defines the period of time being used to measure the duration.

Valid Values: YEAR, MONTH, DAY, HOUR, CALENDAR_DAY, BUSINESS_DAY, MINUTE, SECOND, or MILLISECOND

Code so that your app gracefully handles any future changes to this list.
value
Retrieves the duration of the time span (no units).The value in this field indicates the number of years, months, days, hours, or minutes in the defined period.