Last active
May 31, 2018 16:11
-
-
Save m-root/a95d5162f457cb8f675f1015fb8e5c84 to your computer and use it in GitHub Desktop.
top of the minute
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
endtime = time.time() + 60 | |
while time.time() < endtime: | |
value = datetime.utcnow().strftime("%S") | |
entTime = int(value) | |
print(60 - entTime) | |
time.sleep(1) | |
if entTime == 0: | |
break | |
############ SAME THING ############# | |
currentTime = datetime.utcnow().strftime("%M") | |
while currentTime == datetime.utcnow().strftime("%M"): | |
print(60 - int(datetime.utcnow().strftime("%S"))) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment