---
title: hasUndeterminedDuration
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hksample/hasundeterminedduration
---

# hasUndeterminedDuration

Indicates whether the sample has an unknown duration.

## Declaration

```swift
var hasUndeterminedDuration: Bool { get }
```

## Discussion

Discussion This property is true if the sample’s endDate property is distantFuture.

## See Also

### Accessing the Sample’s Data

- [startDate](healthkit/hksample/startdate.md)
- [endDate](healthkit/hksample/enddate.md)
- [sampleType](healthkit/hksample/sampletype.md)
