# This program accepts two times in hours, minutes and seconds.
# It calculates the difference between the two times and displays 
# the results first in seconds, then in hours (if applicable), minutes,
# and seconds.
import timeOps

print "Enter the hours for time 1:",
t1h = input()
print "Enter the minutes for time 1:",
t1m = input()
print "Enter the seconds for time 1:",
t1s = input()

print "now ..."
print "Enter the hours for time 2:",
t2h = input()
print "Enter the minutes for time 2:",
t2m = input()
print "Enter the seconds for time 2:",
t2s = input()

t1 = timeOps.hmsToSecs(t1h, t1m, t1s)
t2 = timeOps.hmsToSecs(t2h, t2m, t2s)

if t1> t2:
    t = t1-t2
else:
    t= t2 -t1
    
timeOps.secsToHMS(t)    
    