|
---|
Amateur Hour |
Write a function that takes time t1 and time t2 and returns the number of hours passed between the two times. |
Examples |
<br>hoursPassed("3:00 AM", "9:00 AM")<br>output = "6 hours"<br><br>hoursPassed("2:00 PM", "4:00 PM")<br>output = "2 hours"<br><br>hoursPassed("1:00 AM", "3:00 PM")<br>output = "14 hours"<br><br>hoursPassed("4:00 PM", "4:00 PM")<br>output = "no time passed"<br> |
Notes |
- Time t1 will always be the starting time and t2 , the ending time. - Return the string "no time passed" if t1 is equal to t2 . |