View Single Post

  #2 (permalink)  
Old 10-09-2007, 10:37 PM
svinopas svinopas is offline
Junior Member
User
 
Join Date: Oct 2007
My distro: Ubuntu
Posts: 2
Rep Power: 0
svinopas is on a distinguished road
Default

I have found how to do this:
Code:
DATE_NOW_UNIXTIME=`date --date=now +"%s"`
LOG_HOURS=75
unixtime_LOG_HOURS=`expr $LOG_HOURS \* 60 \* 60`
echo `expr $DATE_NOW_UNIXTIME - $unixtime_LOG_HOURS`
Reply With Quote