I wonder if anyone has a clever script which will calculate the difference between 2 dates ?
ie. Date 1 : Mon 26 10:11:22
Date 2 ; Tue 27 11:23:01
How do I find the total number of minutes between these two ?
date %d
will give you the 'days' which can subtract without worry of months and days in month
something likeim not at a aix box to test syntax)
echo $(($(date d%)-$DATE1*1440)) #DATE1-then from now
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.