Do something like:
HoursRevised=int(360*Hours+60*Minutes+Seconds)/360)
MinutesRevised=int((60*Minutes+Seconds)/60)
SecondsRevised=int((Seconds)/60)
Then replace hours with HoursRevised, Seconds with Seconds Revised, Minutes with Minutes Revised.
Or you could just maintain total seconds, and then populate the hours and minutes/seconds field with the integer method.
There might be a more elegant solution, but thats one I can think of off the top of my head.
|