You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
361 B

  1. from dateutil.parser import parse
  2. from upload import upload
  3. import datetime
  4. import os
  5. import subprocess
  6. import time
  7. from upload import upload
  8. t = parse(input("Enter endtime: "))
  9. wait = (t-datetime.datetime.today()).seconds
  10. subprocess.call(['timeout.exe','/nobreak',str(wait)])
  11. upload()
  12. print("Logging off in ")
  13. for i in range(10,-1,-1):
  14. print(i)
  15. time.sleep(1)