WebService::SlimTimer::TimeEntry - Represents a time entry record in SlimTimer.
version 0.003
The objects of this class repesent a single entry spent on some SlimTimer task. Just as WebService::SlimTimer::Task objects, they are never created directly but are returned by WebService::SlimTimer methods such as list_entries() or get_entry().
list_entries()
get_entry()
my @entries = $st->list_entries(start => ..., end => ...); my $total = 0; for my $e (@entries) { $total += $e->duration; } print "Total time spent during the given interval $total seconds.\n";
The unique numeric id of the entry.
The numeric id of the associated task.
The name of the associated task, provided as a convenience to avoid the need for calling "get_task" in WebService::SlimTimer just to retrieve it.
The time when the entry started.
The time when the entry ended.
Duration of the entry in seconds.
The time when the entry itself was created.
The time when the entry was last modified.
WebService::SlimTimer
Vadim Zeitlin <vz-cpan@zeitlins.org>
This software is copyright (c) 2011 by Vadim Zeitlin.
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 WebService::SlimTimer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::SlimTimer
CPAN shell
perl -MCPAN -e shell install WebService::SlimTimer
For more information on module installation, please visit the detailed CPAN module installation guide.