analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog

The source is available in a pretty-format HTML page and as a raw text file.

NAME

analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog


SYNOPSIS

  analog -Ostats/fy`analog-fiscal-year.pl -e .html`


DESCRIPTION

This program outputs a string of date ranges so that Analog will generate a web server report based on a fiscal year criteria. Since our fiscal years do not match calendar years, Analog's time-based restrictions can't do this for us. Use this program to supply commandline parameters to analog as it runs to generate a statistics file. On July 1st of each year, the output automatically rolls to the next fiscal year.

Fiscal years are assumed to start on July 1st, and the label for the fiscal year is assumed to be the last in the range (e.g. July 1st, 2002 is in fiscal year 2003).


OPTIONS

-e < suffix >
Use this option to add a suffix (such as a '.html' extension) to the end of the fiscal year filename. See EXAMPLES.

-d < mm/yyyy >
Use this option to force a particular fiscal year. The format is month and year separated with a slash. If the year is two digits, it is assumed to be in the 21st century.


EXAMPLES

To generate a report for this fiscal year, use this command line:

   analog -Ostats/fy`analog-fiscal-year.pl -e .html`

If today is July 19th, 2002, the program will generate this string:
   2003.html +F020701 +T030630

Resulting in the final analog command line of:
   analog -Ostats/fy2003.html +F020701 +T030630

To generate a report for a previous fiscal year, use this command line:
   analog -Ostats/fy`analog-fiscal-year.pl -e .html -d 10/2001`


SEE ALSO

analog(1)

Updates to this program can be found at http://www.pandc.org/peter/work/projects/analog-fiscal-year/


AUTHORS

Peter Murray, University of Connecticut School of Law, http://www.pandc.org/peter/work/

 analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog