I am reading sleep data into my react-native app using react-native-healthkit
, and I need to find a way to get the total amount of sleep time. The data is read in like this:
If anyone has any ideas on the best way to handle this data, please let me know.