Skip to content

Commit

Permalink
POD for an Asset::Event method.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 18, 2012
1 parent a6e1adf commit 46152ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/WebGUI/Asset/Event.pm
Expand Up @@ -399,6 +399,14 @@ sub dateSet {

#-------------------------------------------------------------------

=head2 duration ( )
Returns a DateTime::Duration object that represents the difference in time between the end
and start times of the event.
=cut


sub duration {
my $self = shift;
return $self->getDateTimeEnd - $self->getDateTimeStart;
Expand Down

0 comments on commit 46152ed

Please sign in to comment.