Created
December 8, 2021 14:30
-
-
Save SuperLeo23/1d8d2ac8475e923c66b856deb3b8a81c to your computer and use it in GitHub Desktop.
Simple script to get your download or upload time even if it isn't provided by the application youre dowloading from
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
| import datetime | |
| left = input("Left (MB): ") | |
| speed = input("Speed (MB/S): ") | |
| result = (int(left) / int(speed)) | |
| if (result >= 3600): | |
| result = result / 60 / 60 | |
| print(round(result, 2), " Hours Left") | |
| elif (result >= 60): | |
| result = result / 60 | |
| print(round(result, 2), " Minutes Left") | |
| else: | |
| print(round(result, 2), " Seconds Left") | |
| input("Press enter to exit ;)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment