I hope this is not outside of the abilities of Python generators, but I’d like to build one so that every time the function is called, it returns the next minute up until the end time.
So the function reads in a start and end time, and returns the time on a minute by minute basis until all the time in between has been covered.
How would this be implemented? TIA
Just because fewer lines of code is always better ™:
Use it like this: