Last active
September 21, 2018 08:19
-
-
Save ekam230/b8250233ed950c7199379240e780feeb to your computer and use it in GitHub Desktop.
python timer for every 5 minute +20 seconds
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
import datetime | |
now = datetime.datetime.now() | |
minute = now.minute | |
second = now.second | |
nextstart = ((5-(minute%5))*60)-second | |
nextstart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment