App::TimeClock::DailyReport
Can parse the timelog and generate a report using an instance of a App::TimeClock::PrinterInterface.
Initializes a new App::TimeClock::DailyReport object.
Two parameters are required:
Must point to a timelog file. Will die if not.
An object derived from App::TimeClock::PrinterInterface. Will die if not.
Returns a time (seconds since epoch) from a date and time.
Returns the time when the report was executed.
Sets the time when the report is executed.
Opens the timelog file starts parsing it, looping over each day and calling print_day() for each.
Søren Lund, <soren at lund.org>
<soren at lund.org>
timeclock.pl
Copyright (C) 2012 Søren Lund
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991 or at your option any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
To install App::TimeClock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::TimeClock
CPAN shell
perl -MCPAN -e shell install App::TimeClock
For more information on module installation, please visit the detailed CPAN module installation guide.