Skip to content

Instantly share code, notes, and snippets.

@abhi923
Created April 27, 2020 05:22
Show Gist options
  • Save abhi923/bfc94c2904324a8073ae15e11c44c849 to your computer and use it in GitHub Desktop.
Save abhi923/bfc94c2904324a8073ae15e11c44c849 to your computer and use it in GitHub Desktop.
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)
@index8
Copy link

index8 commented May 22, 2020

thx you

@abhi923
Copy link
Author

abhi923 commented May 27, 2020

thx you

You are welcome.. Happy to help

@bhonslra
Copy link

Thank You, however I found this bit helpful.

import datetime
from datetime import timedelta

@abhi923
Copy link
Author

abhi923 commented Jun 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment