App::JobLog::Log::Format - pretty printer for log
This module handles word wrapping, date formatting, and the like.
Obtains a properly filtered list of App::JobLog::Log::Day objects for a given time expression, code reference to event filtering closure, and hash specifying fields to hide in report. Returns reference to list of days and whether the year should be shown in dates.
undef is passed in as the code reference a dummy closure is constructed that returns the argument passed in unmodified.
Augments App::JobLog::Log::Day objects with appropriate App::JobLog::Log::Synopsis objects given the merge level and hidden fields. Expects a reference to a list of days, the merge level, a reference to the hidden columns hash, the width of the screen in columns, and whether the year should be displayed when showing dates. Prints synopses to STDOUT along with aggregate statistics for the interval.
wrap from Text::Wrap.
Expects a string and a number of columns.
Returns a reference to an array of substrings wrapped to fit the columns.
Whether times should be displayed given the merge level.
Work time formatter.
David F. Houghton <email@example.com>
This software is copyright (c) 2011 by David F. Houghton.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.