by Gidan » Thu Jun 01, 2006 5:43 pm
Convert to military time first
Next convert both times into minutes
Start Time in Minutes = Start Hour * 60 + Start Minute
End Time in Minutes = End Hour * 60 + End Minute
Get the Difference between the 2
If Start Time in Minutes > End Time in Minutes
Total difference in minutes = 1440 - Start Time in Minutes + End Time in Minutes
If End Time in Minutes > or = Start Time in Minutes
Total difference in minutes = End Time in Minutes - Start Time in Minutes
Determin the number of minutes passed
Total Minutes passed = Total Difference in Minutes MOD 60
Determin the number of hours passed
Total Hours passed = Total Difference in Minutes DIV 60
Your elapsed time
Total Elapsed time = Total Hours Passed : Total Minutes Passed
Its not quick but it will give you the time your looking for. Its the easiest way to deal with the minutes.
For to win one hundred victories in one hundred battles is not the acme of skill. To subdue the enemy without fighting is the acme of skill.