ADSM-L

Date format manipulation.

2002-03-04 16:17:14
Subject: Date format manipulation.
From: "PINNI, BALANAND (SBCSI)" <bp3965 AT SBC DOT COM>
Date: Mon, 4 Mar 2002 15:00:37 -0600
 Hi Just shell script question.
I want to manipulate dates and get diff of two variables.
But result I want in hrs:min:sec.
Start_Time=`date +%H%M%S`
sleep 1                                 (Just for testing diff is 1)
End_Time=`date +%H%M%S`
TOTAL_Time=`echo "$End_Time - $Start_Time"|bc`
echo $TOTAL_Time

But result I want in hrs:min:sec ????I want to be very simple don't want to
use sed and awk.
Thanks
Balanand
<Prev in Thread] Current Thread [Next in Thread>