I need a way to generate a list of all five minute increments between some arbitrary set of hours. So, for example, if I wanted 3p and 4p, it would look like:
3:00 PM, 3:10 PM, 3:15 PM, 3:20 PM, etc....
Any thoughts on the quickest way to do this?
QuicknDirty
for i in range (60):
if i % 5 == 0:
print('X:{}PM'.format (i))
Or as function ;)
def getMinutes (hour, minuteSteps):
steps = []
for i in range (60):
if i % minuteSteps == 0:
steps.append('{}:{}PM'.format (hour,i))
return steps