Re: will wwwstat parse date?

Roy T. Fielding (fielding@kiwi.ICS.UCI.EDU)
Wed, 18 Jun 1997 16:49:59 -0700


>I am trying write a perl script wrapper to execute wwwstat to gather web
>statistic on weekly(Sunday to Saturday)  basis.  For example, to gather
>statistic from Jun 1 97 to Jun 7 97, I can use the following command:
>
>wwwstat -d "Jun [1-7] 97" <log files name>
>
>However, some weeks are across month boundary, for example, Jun 29 97 to
>July 5 97.  Is there a easier way that I can simply enter the beginning
>and end date so that wwwstat will produce the statistic between these
>two dates.

Nope, but it is relatively easy to calculate the regular expression,
assuming your perl script is already determining what dates to use.

   wwwstat -d '(Jun (29|30|31)|Jul  [1-5]) 1997'

That is valid even though there are only 30 days in June.

You could also add another option, and code to implement it, directly
within wwwstat, but right now wwwstat just does a simple string compare
against the date key (the string that would appear in the Total Transfers
by Request Date table).

....Roy