Instance Property

startDate

The sample’s start date.

Declaration

var startDate: Date { get }

Discussion

The sample’s start date must be equal to or earlier than its end date.

Some samples—for example, body temperature—represent a single point in time. For these samples, both the start and the end date are the same, because they both refer to the point in time when the sample was taken.

Other samples—for example, step count—represent data over a time interval. Here, the sample should use different start and end dates. These dates mark the beginning and end of the sample’s time interval, respectively.

See Also

Accessing the Sample’s Data

var endDate: Date

The sample’s end date.