Contents

dateInterval

The time and duration of the event.

Declaration

var dateInterval: DateInterval { get }

Discussion

Most event types support only date intervals with a zero-length duration. These intervals indicate a single point in time, represented by the interval’s startDate property. Only HKWorkoutEventType.lap and HKWorkoutEventType.segment event types support intervals with nonzero durations.

See Also

Getting property data