04-05-2021 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-05-2021 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Using the Heart Rate sensor, I am able to get the heart rate and timestamp of each reading as they occur. How do you use the timestamp to determine the date and time that the reading occurred? Does the timestamp represent the number of seconds from some point in time? If so, what point in time? Thanks!

04-05-2021 13:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-05-2021 13:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The timestamps are arbitrary, and are really only relative to one another. If you take note of the actual time at which the first of the readings arrives (eg, using Date), then you can work out the actual time of subsequent readings.
Gondwana Software

04-06-2021 04:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-06-2021 04:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I tried using Date during this process and it returns a timestamp as well. I am unable to extract a date and time from this value, either. How do you get a date and time out of this value? My Java knowledge is limited, and I have tried different methods to extract it without success.

04-06-2021 13:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-06-2021 13:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Gondwana Software

