NAME
WebService::SlimTimer::TimeEntry - Represents a time entry record in SlimTimer.
VERSION
version 0.005
SYNOPSIS
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()
.
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";
ATTRIBUTES
id
The unique numeric id of the entry.
task_id
The numeric id of the associated task.
task_name
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.
start_time
The time when the entry started.
end_time
The time when the entry ended.
duration
Duration of the entry in seconds.
created_at
The time when the entry itself was created.
updated_at
The time when the entry was last modified.
SEE ALSO
AUTHOR
Vadim Zeitlin <vz-cpan@zeitlins.org>
COPYRIGHT AND LICENSE
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.