vaidyarm
3 years agoContributor
How to Convert Timestamp from 1 min to 5 min
we have the number of rows divided by 1 min each
“2023-04-01 12:00:00 UTC”
“2023-04-01 12:01:00 UTC”
“2023-04-01 12:02:00 UTC”
“2023-04-01 12:03:00 UTC”
“2023-04-01 12:04:00 UTC”
“2023-04-01 12:05:00 UTC”
“2023-04-01 12:06:00 UTC”
“2023-04-01 12:07:00 UTC”
“2023-04-01 12:08:00 UTC”
“2023-04-01 12:09:00 UTC”
“2023-04-01 12:10:00 UTC”
we need to group them over a period of 5 min instead of 1
“2023-04-01 12:05:00 UTC”
“2023-04-01 12:10:00 UTC”
0-5 min > 5 min
6-10 min > 10 min
Can anyone help me with it? there are a huge number of timestamps, not limited above example, once we have this, we will be able to aggregate data for every 5 mins