diff --git a/lib/WebGUI/Asset/Event.pm b/lib/WebGUI/Asset/Event.pm index 855e97753..aa2a2397c 100644 --- a/lib/WebGUI/Asset/Event.pm +++ b/lib/WebGUI/Asset/Event.pm @@ -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;