Jan Engelhardt wrote:

> I wanted to get the number of seconds since the start of the day.
> 
>         echo $[`date +%s` % 86400];

How about:

echo $[$(date +%s) - $(date -d '' +%s)]

Brian


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to