---
title: intervalComponents
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkstatisticscollectionquery/intervalcomponents
---

# intervalComponents

The date components that define the time interval for each statistics object in the collection.

## Declaration

```swift
var intervalComponents: DateComponents { get }
```

## Discussion

Discussion This property defines the length of the time intervals for your collection. The following code sample shows a number of common time intervals.

## See Also

### Getting Property Data

- [anchorDate](healthkit/hkstatisticscollectionquery/anchordate.md)
- [options](healthkit/hkstatisticscollectionquery/options.md)
