All dates and datetimes provided by the API are in ISO 8601 format. In case the date is in UTC, it follows the following formats:
As the local time plays an important role in sleep and activity data, we often expose local times in the API using standrad ISO 8601 notation. For example the above date time is shown in Pacific Standard Time as
We express all durations as seconds. For example amount of REM sleep per night is expressed in seconds.
Both activity and sleep data contain interval classifications. We have used a string instead of a list to encode phases for a more compact representation.