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

NAME

App::JobLog::Log::Event - basically adds an end time to App::JobLog::Log::Line events

VERSION

version 1.042

DESCRIPTION

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.

METHODS

clone

Create a duplicate of this event.

overlap

Expects two DateTime objects as arguments. Returns the portion of this event overlapping the interval so defined.

end

End of event. Is lvalue method.

cmp

Used to sort events. E.g.,

 my @sorted_events = sort { $a->cmp($b) } @unsorted;

is_closed

Whether an end moment for this event is defined.

is_open

Whether no end moment for this event is defined.

duration

Duration of event in seconds.

split_days

Splits a multi-day event up at the day boundaries.

intersects

Whether the time period of this overlaps with another.

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.