NAME

App::HWD::Work - Work completed on HWD projects

SYNOPSIS

Used only by the hwd application.

Note that these functions are pretty fragile, and do almost no data checking.

FUNCTIONS

App::HWD::Work->parse()

Returns an App::HWD::Work object from an input line

App::HWD::Work->new( { args } )

Creates a new task from the args passed in. They should include at least level, name and id, even if id is undef.

$work->set( $key => $value )

Sets the $key field to $value.

$work->who()

Returns who did the work

$work->when()

Returns the when of the work as a string.

$work->when_obj()

Returns the when of the work as a DateTime object.

$work->task()

Returns the ID of the work that was worked on.

$work->hours()

Returns the hours spent.

$work->completed()

Returns a boolean that says whether the work was completed or not.

$work->comment()

Returns the comment from the file, if any.

AUTHOR

Andy Lester, <andy at petdance.com>

COPYRIGHT & LICENSE

Copyright 2006 Andy Lester, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.