Created
June 9, 2017 17:39
-
-
Save notmyname/e2b5292bad2891ed4b67f3b80780739a to your computer and use it in GitHub Desktop.
a tool to find the best day to do a release
This file contains hidden or 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
from datetime import date | |
import calendar | |
my_date = date.today() | |
today = calendar.day_name[my_date.weekday()] | |
if today.endswith('y'): | |
print 'Today is a good day for a release!' | |
else: | |
print 'Probably best to wait for a release' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment