2011/3/21 Binand Sethumadhavan <[email protected]>:
> 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
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to