Working out time differences

Hi everyone,

I need to be able to write into a ksh script, a function that can look at 2 24 hour time variables and work out the difference between them.

e.g

job1 runs at 21:00
job2 runs at 01:00

diff = 04:00 hours

I would also need negative numbers i.e where job1 runs after job2

can anybody help?

cheers

Rik

See this thread for some ideas.