Type Method

second()

Returns a HealthKit unit for measuring time in seconds.

Declaration

class func second() -> Self

Return Value

A HealthKit unit for measuring time in seconds.

See Also

Constructing Time Units

class func secondUnit(with: HKMetricPrefix) -> Self

Returns a HealthKit unit for measuring time, using second units with the provided prefix.

class func minute() -> Self

Returns a HealthKit unit for measuring time in minutes.

class func hour() -> Self

Returns a HealthKit unit for measuring time in hours.

class func day() -> Self

Returns a HealthKit unit for measuring time in days.