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

NAME

App::JobLog::Log::Format - pretty printer for log

VERSION

version 1.042

DESCRIPTION

This module handles word wrapping, date formatting, and the like.

METHODS

time_remaining

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.

If undef is passed in as the code reference a dummy closure is constructed that returns the argument passed in unmodified.

display

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

Wraps 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.

duration

Work time formatter.

AUTHOR

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

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.