NAME
App::TimeTracker - Track time spend on projects from the commandline
SYNOPSIS
App::TimeTracker tracks time spend on various projects in a SQLite DB.
see perldoc tracker
for a convenient frontend.
METHODS
new
my $tracker = App::TimeTracker->new;
Initiate a new tracker object.
Provided by Class::Accessor
Helper Methods
now
my $now = $self->now;
Wrapper around DateTime->now that also sets the timezone to local
storage_location
my $dir = $self->storage_location
Returns the path to the dir containing the stored tasks. Currently hardcoded to File::HomeDir plus .TimeTracker.
file
my $path = $self->file( 'path/to/some/file' );
my $path = $self->file( qw( path to some file) );
Prepends storage_location to the passed file path.
parse_datetime
my $dt = $self->parse_datetime("1245");
my $dt = $self->parse_datetime("0226-1245");
Convert a simple time / datetime into a DateTime object
Input can be a string containing Hour and Minute ("1245"), which will use todays date. Or a string containing Month Day followed by Hour & Minute (seperated by _ or -)
get_from_to
parse --from and --to, returns strings suitable for find_tasks
find_tasks
returns a list of filesnames (=tasks) that match the criteria specified on the commandline.
AUTHOR
Thomas Klausner, <domm at cpan.org>
BUGS
Please report any bugs or feature requests to bug-timetracker at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App::TimeTracker. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc App::TimeTracker
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2008 Thomas Klausner, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.