The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 1.002

DESCRIPTION

This wasn't written to be used outside of App::JobLog. The code itself contains interlinear comments if you want the details.

METHODS

new

Basic constructor. Expects single App::JobLog::Log::Line argument. Can be called on instance or class.

clone

Create a duplicate of this event.

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.