On May 02, "[EMAIL PROTECTED]" wrote:

> Hello,
> 
> i am using flow-tools 0.67.
> But i have a little Problem, by generating a report once a day:
> 
> 
> I am generating a Report like this:
> 
> #  --- ---- ---- Report Information --- --- ---
> # build-version:        flow-tools 0.67
> # first-flow:           1112047198 Mon Mar 28 23:59:58 2005
> # last-flow:            1112133598 Tue Mar 29 23:59:58 2005
> # now:                  1112149401 Wed Mar 30 04:23:21 2005
> 
> 
> But, i want another format for the date of the first and last Flow like
> this one:
> 
> # first-flow:           2005-03-29 00:00:00
> # last-flow:            2005-03-29 23:59:59
> 
> I found nothing, in the docs, how to change this. Can anyone help me here?

I don't know if this can be changed with flow-tools, but it wouldn't be
too bad to do it with some shell scripting:

... |  awk '{print $3}' | xargs -L 1 -J % date  -r % +"# blah %Y-%m-%d %H:%M:%S"
# blah 2005-03-28 13:5958
# blah 2005-03-29 13:5958
# blah 2005-03-29 18:2321

Not pretty, but you get the idea.  The epoch time gives you a lot of
flexibility.

Good luck!

Mike
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to