---
title: duration
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nstextcheckingresult/duration
---

# duration

The duration component of a type checking result.

## Declaration

```swift
var duration: TimeInterval { get }
```

## See Also

### Text Checking Results for Dates and Times

- [dateCheckingResult(range:date:)](foundation/nstextcheckingresult/datecheckingresult(range:date:).md)
- [dateCheckingResult(range:date:timeZone:duration:)](foundation/nstextcheckingresult/datecheckingresult(range:date:timezone:duration:).md)
- [date](foundation/nstextcheckingresult/date.md)
- [timeZone](foundation/nstextcheckingresult/timezone.md)
