---
title: to
framework: sensorkit
role: symbol
role_heading: Instance Property
path: sensorkit/srfetchrequest/to
---

# to

Fetches sample information that occurs before this time.

## Declaration

```swift
var to: SRAbsoluteTime { get set }
```

## Discussion

Discussion The framework requires the app to define a value for this property. If an app fails to define this property, the framework responds to the fetch by providing SRError.Code.fetchRequestInvalid to the reader delegate via sensorReader(_:fetching:failedWithError:).

## See Also

### Defining the Time Range

- [from](sensorkit/srfetchrequest/from.md)
- [SRAbsoluteTime](sensorkit/srabsolutetime.md)
- [current()](sensorkit/srabsolutetime/current().md)
- [toCFAbsoluteTime()](sensorkit/srabsolutetime/tocfabsolutetime().md)
