Global Variable

HKMetadataKeyTimeZone

The user’s time zone when the HealthKit object was created.

Declaration

NSString *const HKMetadataKeyTimeZone;

Discussion

This key takes a string value compatible with the NSTimeZone class’s timeZoneWithName: method. For best results when analyzing sleep samples, it's recommended that you store time zone metadata with your sleep sample data.

See Also

General Keys

HKMetadataKeyExternalUUID

A unique identifier for an HKObject that is set by its source.

HKMetadataKeyWasUserEntered

A key that indicates whether the sample was entered by the user.