I have an array of tracks.
const history = [
{
entryDate: "2022-05-03T09:32:07.137+02:00",
type: "statusChange",
message: "",
},
{
entryDate: "2022-05-02T19:32:07.137+02:00",
type: "statusChange",
message: "",
},
{
entryDate: "2022-05-02T09:32:07.137+02:00",
type: "statusChange",
message: "",
},
{
entryDate: "2022-05-02T07:30:01.672+02:00",
type: "statusChange",
message: "",
}
];
How to get the number of minutes that was tracked only during given times, for example: How many minutes was the user tracked from 09:30 - 18:00 from the given array of tracks?
Hard to figure it out myself.