Skip to content

Instantly share code, notes, and snippets.

@quandyfactory
Created November 25, 2011 19:27
Show Gist options
  • Save quandyfactory/1394261 to your computer and use it in GitHub Desktop.
Save quandyfactory/1394261 to your computer and use it in GitHub Desktop.
A list comprehension of times in 15 minute increments
# produces ['00:00', '00:15', '00:30', '00:45', '01:00', '01:15', '01:30'...
increments = ['%02d:%02d' % (h, m) for h in range(24) for m in range(0, 60, 15)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment