Rob Conway wrote:

>I just use "date +%s" to get the unix time but how can I easily 
>round this value ?

etime=`date +%s`
step=300
etime=$(( ${etime} - ( ${etime} % ${step} ) ))

Now, can someone show me how to convert the resulting end time to a 
human readable form - eg so I can use it in a gprint statement ?

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to