Trying to understand filter syntax

Antony Stone Antony.Stone at arbtt.open.source.it
Sun Jul 2 20:01:37 CEST 2017


On Sunday 02 July 2017 at 19:37:11, Joachim Breitner wrote:

> Hi,
> 
> Am Sonntag, den 02.07.2017, 11:08 +0200 schrieb Antony Stone:
> > If I try:
> > 	$ arbtt-stats -f '$date >= 2017-07-01 && $date < 2017-07-02'
> > 
> > it tells me:
> It works for me:
> $ arbtt-stats -f '$date >= 2017-07-01 && $date < 2017-07-02'
> Processing data
> [==========>..............................................................
> ...........................................................................
> .........................]   6%^C
> 
> (this is version 0.9.0.13). Which version are you using?

Hm, this is 0.6.2 (packaged from Debian wheezy)

> Maybe some strange shell doing unexpected quoting (although '…' should
> work…)?

The syntax -f ' ... ' works fine if I specify times - but not dates :(


I've actually found a workaround in the meantime:

 -f 'format $date >= "2017-07-01" && format $date < "2017-07-02"'


That does what I need.


Antony.

-- 
We all get the same amount of time - twenty-four hours per day.
How you use it is up to you.

                                                   Please reply to the list;
                                                         please *don't* CC me.




More information about the arbtt mailing list