The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::TimeClock::DailyReport

DESCRIPTION

Can parse the timelog and generate a report using an instance of a App::TimeClock::PrinterInterface.

METHODS

new($timelog, $printer)

Initializes a new App::TimeClock::DailyReport object.

Two parameters are required:

$timelog

Must point to a timelog file. Will die if not.

$printer

An object derived from App::TimeClock::PrinterInterface. Will die if not.

_timelocal()

Returns a time (seconds since epoch) from a date and time.

_get_report_time()

Returns the time when the report was executed.

_set_report_time()

Sets the time when the report is executed.

execute()

Opens the timelog file starts parsing it, looping over each day and calling print_day() for each.

AUTHOR

Søren Lund, <soren at lund.org>

SEE ALSO

timeclock.pl

COPYRIGHT

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.