04-05-2021 11:52
04-05-2021 11:52
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
04-05-2021 13:11
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.
04-06-2021 04:31
04-06-2021 04:31
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
04-06-2021 13:24
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date