
December 4th, 2012, 12:39 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 16
Time spent in forums: 5 h 51 m 50 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by sght Hi Everyone, I am new here, and I was hoping to get a bit of help from anyone who could give me a hand with this program. I am having a hard time wrapping my head around it. I am going to want to use while loops to do the following:
Accept two times, in 24-hour notation (e.g. 2359 = 1 minute to midnight) and then print the time difference. For example, if time1 = 1215 and time2 = 1436 the difference is 2 hours 21 minutes. If time1 = 2230 and time2 = 0415 the difference is 5 hours 45 minutes.
I would really appreciate any help |
I don't know exactly how to do it neither, but take a look at the time module, it may help you further. http://docs.python.org/3.3/library/time.html
|