# Class: MeasureDuration

## tibco.objectapi.ec.base.MeasureDuration

#### new MeasureDuration()

A specific duration within a MeasurePeriod. This is used: - in a request, to provide the required start date, end date and granularity. - in a response, to describe the time a MeasurePeriod refers to. See MeasurePeriod for more details. Constructs a new MeasureDuration.

The following features are supported:

- `End Date`
- `Start Date`
- `Granularity`

### Members

#### endDate :Date

End date for this MeasureDuration. This property holds the value of the 'End Date' attribute.

##### Type:

- Date

#### granularity :tibco.objectapi.ec.base.MeasureGranularity

Enumerated value defining the unit of time represented by a MeasurePeriod that is either required (in a request) or returned (in a response). One of: HOUR, DAY, MONTH, YEAR or WEEK. This property holds the value of the 'Granularity' attribute.

##### Type:

- tibco.objectapi.ec.base.MeasureGranularity

#### startDate :Date

Start date for this MeasureDuration. This property holds the value of the 'Start Date' attribute.

##### Type:

- Date