I have an array with the following time-series data. How can I split the array into intervals of 60 milliseconds(not greater than) and get the last array?
[
[1619932533,1781.85],
[1619932540,1781.72],
[1619932554,1781.99],
[1619932559,1783.84],
[1619932564,1783.02],
[1619932567,1780.38],
[1619932571,1780.52],
[1619932577,1780.38],
[1619932580,1783.07],
[1619932581,1782.17],
[1619932581,1782.17],
[1619932601,1782.95],
[1619932612,1782.7],
[1619932614,1782.82],
[1619932626,1782.82],
[1619932653,1784.12],
.....
]
I need the final data like this?
[
[1619932533,1781.85],
[1619932581,1782.17],
[1619932653,1784.12]
]
*split based on the first value 1619932533 and +60 and goes on....
17:58:52.533and last time is17:58:52.653- there are not 60 seconds between them. Do you mean milliseconds?1619932533 + 60is1619932593. The largest number in that range is1619932581.