Last active
July 30, 2016 07:21
-
-
Save vieirin/925dc29fbecb49709f38a310ae75c8a7 to your computer and use it in GitHub Desktop.
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
from datetime import datetime, timedelta | |
lasttime = datetime.now() | |
#you're gonna save your previous date like this ^ | |
tomorrow = lasttime + timedelta(days=1) | |
now = datetime.now() | |
if tomorrow <= now: | |
print('is already tomorrow!') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment