Created
April 27, 2020 05:22
-
-
Save abhi923/bfc94c2904324a8073ae15e11c44c849 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
hour = int(input("Starting time (hours): ")) | |
mins = int(input("Starting time (minutes): ")) | |
dura = int(input("Event duration (minutes): ")) | |
# put your code here | |
print('Finish Time:', ((hour + (mins+dura)//60)%24), ':', (mins+dura) % 60) |
HI @bhonslra
This code was especially to be made without using the datetime module.
Also do let me know if you have other workaround without using module.
TIA.
…On Sun, Jun 28, 2020 at 7:50 AM bhonslra ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Thank You, however I found this bit helpful.
import datetime
from datetime import timedelta
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/bfc94c2904324a8073ae15e11c44c849#gistcomment-3356898>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APCMWVSYUHWFY6SLPLBIYQTRY2SGDANCNFSM4NIAEHXQ>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank You, however I found this bit helpful.
import datetime
from datetime import timedelta