From 46152edef68d7525b555ec2dd98c435e9f67cde2 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 18 Jan 2012 13:15:57 -0800 Subject: [PATCH] POD for an Asset::Event method. --- lib/WebGUI/Asset/Event.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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;