2011/3/21 Binand Sethumadhavan binand@gmail.com:
late=$(( `date '+%s'` - `date '+%s' -d 'today 10am'` ))
And then convert $late to any format you want.
Like:
late=$(( `date '+%s'` - `date '+%s' -d 'today 10am'` )) printf "%02d:%02d\n" $(( $late / 60 )) $(( $late % 60 ))
Binand