This is an old revision of the document!
echo $(date +%s)/86400 | bc echo $(($(date +%s)/86400)) let days=$(date +%s)/86400 ; echo $days
If perl is installed:
perl -e ' $days=int(time()/86400);print "$days\n"; '
perl -e 'print time(), "\n" '
perl -e "print scalar(localtime(1268727836))"