App::JobLog::Log::Event - basically adds an end time to App::JobLog::Log::Line events
version 1.042
App::JobLog::Log::Event represents an interval in time from the log, providing accessors to all the information about this event. It is similar to App::JobLog::Log::Line, delegating to an instance of the latter for much functionality, but it contains additional methods to handle the properties of intervals of time as distinct from points.
Create a duplicate of this event.
Expects two DateTime objects as arguments. Returns the portion of this event overlapping the interval so defined.
End of event. Is lvalue method.
Used to sort events. E.g.,
my @sorted_events = sort { $a->cmp($b) } @unsorted;
Whether an end moment for this event is defined.
Whether no end moment for this event is defined.
Duration of event in seconds.
Splits a multi-day event up at the day boundaries.
Whether the time period of this overlaps with another.
David F. Houghton <dfhoughton@gmail.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.
To install App::JobLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::JobLog
CPAN shell
perl -MCPAN -e shell install App::JobLog
For more information on module installation, please visit the detailed CPAN module installation guide.