simple ra time filter question...
Philipp E. Letschert
phil at uni-koblenz.de
Thu Dec 21 01:33:51 EST 2006
On Wed, Dec 20, 2006 at 11:27:00PM +0000, poncenby smythe wrote:
> what would the command line look like to read an argus file 'argus.data'
> and only show records for November 2006?
ra -r argus.data -t 2006/11/01-2006/11/30
The only drawback, is that you need to know the actual number of days in a month
> i can't understand the -t section of the man ra page at all!
There are three possibilities what a time range could look like
1) [[[yyyy/]mm/]dd.]hh[:mm[:ss]]
2) [yyyy/]mm/dd
3) -%d{yMdhms}
the parameters in square brackets are optional, so for 1) specifying a number
with 2 digits will always be interpreted as hour, you can expand it to the left
(by adding dd.) or to the right (by adding :mm).
the second one shows how dates are handled, so you can see that 2006/11 would
beinterpreted as month/day, the only way to see the whole month is using a range
with '-'.
the last one is puzzling to me, as I understood it is a offset back in the past,
so I expected either -1M or -51d-21d to show only records from the last month,
but this did not work.
Regards, Philipp
More information about the argus
mailing list