Since when has date and time calculations ever been simple?
It is about as simple as computing using imperial measurements.
it might be more complicated when the start and end times are on different dates. Your assumption that start and end times would occur within 24 hours could be false. I am aware of at least one case where a flight in a passenger DC10 took over 24 hours total time because of weather delays after the start of the flight. You might want to provide a mechanism to indicate that the end time is the next day from the start date.
Thanks for the reply GKaiseril,
I managed to realize the basic method. If I am right util.scand to convert, then get.time then calculate then util.printd?
These Jouney Logs (timesheets) will definately not be longer than 24hours, as we are not doing long haul and have no relief crew.
My thoughts were either using if start>end do one calc if not do another, or appending today's date and if start>end then tomorrows date to the end time. This is where I started to get stuck.
Any guide as to this crossover would be appreciated, hopefully then I can learn to do it and write some code for these various bits.
Thanks for your help, Keith