What could be a good way to generate timestamp series for 5 minute interval with a start time of say 09:10:00 and end time of 15:30:00
I know I could hard-code it like below (with all entries, but there must be a clean way where I can just give interval.
times=[pd.to_datetime(i).time() for i in '10:15:00','10:15:05','10:15:10','10:15:15','10:15:20','15:25:00','15:30:00']
I tried
datetime_range(datetime.time(09,15,00), datetime.time(15,30,00), timedelta(minutes=5))
But this gives SyntaxError: invalid token