I am writing a shall script wherein I need the difference between two dates and times. Say
DATE1=1st April, 2003 04:15:25
DATE2=3rd April, 2004 17:45:55
I need to calculate the difference of DATE1 and DATE2 (DATE2-DATE1) in total number of hours/minutes/seconds. Can you please suggest some function/shell command to achieve the same?
Is there any free downloadable script to achieve the same?
Thanks in advance