Operating System - HP-UX
1753354 Members
5116 Online
108792 Solutions
New Discussion

Re: finding difference between 2 given time.

 
SOLVED
Go to solution
Michael Schulte zur Sur
Honored Contributor

Re: finding difference between 2 given time.

Hi,

you did not use copy/paste to transfer the program to solaris? Maybe you forgot to reconnect the typeset line which stretches overt two line.

greetings,

Michael
typeset -i10 OUT=$(echo "${TIME}" | awk '{ print ((substr($0,1,2) + 0) * 3600) + ((substr($0,3,2) + 0) * 60) + (substr($0,5,2) + 0) }')