Created
November 25, 2011 19:27
-
-
Save quandyfactory/1394261 to your computer and use it in GitHub Desktop.
A list comprehension of times in 15 minute increments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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