---
title: timeInDaylight
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/timeindaylight
---

# timeInDaylight

A quantity sample type that measures amount of time the user spent in daylight.

## Declaration

```swift
static let timeInDaylight: HKQuantityTypeIdentifier
```

## Discussion

Discussion These samples use time units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle).

## See Also

### UV exposure

- [uvExposure](healthkit/hkquantitytypeidentifier/uvexposure.md)
