I let's say I have the following time period:
long start = java.sql.Timestamp.valueOf("2021-01-01 00:00:00").getTime();
long end = java.sql.Timestamp.valueOf("2021-02-01 00:00:00").getTime();
I want to loop through this time period and do something for each hh:00, which means:
"2021-01-01 00:00:00"
"2021-01-01 01:00:00"
"2021-01-01 02:00:00"
"2021-01-01 03:00:00"
"2021-01-01 04:00:00"
etc.