Last active
January 10, 2022 00:34
-
-
Save bmcculley/7f25813292e1e92fc0b7 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
#!/usr/bin/python | |
from datetime import datetime, timedelta | |
import sys | |
def timeFormatted(hoursNum): | |
ftime = datetime.now() + timedelta(hours=hoursNum) | |
return '{:%H:%M:%S}'.format(ftime) | |
elapse = 8 | |
for n, i in enumerate(sys.argv): | |
if n > 0: | |
elapse = int(i) | |
print timeFormatted(elapse) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment