Time Between Dates

Time Between Dates

Does anyone know how to figure out the time between two dates in HP-UX, by reading two log files start.log(starting time) and end.log(ending time)?

So if I have the content of
start.log as :
Mon, Feb 18, 2008 09:30:02 PM
&
end.log as:
Tue, Feb 19, 2008 01:25:14 AM

How can I figure out how many days, hours, minutes until start date from end date.
Any possible solution?

In the FAQ section, Perderabo has a date arithmetic thread. Get the code from his datecalc script that does time & date subtraction.

Hi jim,

Thanks a lot for this guidance.

Regards,
Sree

Got the answer here:

http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html:slight_smile: