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))"
date -d '2012-08-08 16:00 UTC' Wed Aug 8 18:00:00 CEST 2012 date -d '2012-12-08 16:00 UTC' Sat Dec 8 17:00:00 CET 2012
date --utc Wed Aug 8 12:35:15 UTC 2012