From 75b2586cb7ecaa48ae88598850019e22542c4a5b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 29 Nov 2019 16:44:45 +0000 Subject: [PATCH] Bug 23974: Add POD for hours_between Add a bit of missing POD whilst we're working in here Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- Koha/Calendar.pm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index bc8ec82d8e..7382fb8ce4 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -379,7 +379,6 @@ sub hours_between { } return $duration; - } sub set_daysmode { @@ -499,7 +498,19 @@ $duration = $calendar->days_between($start_dt, $end_dt); Passed two dates returns a DateTime::Duration object measuring the length between them ignoring closed days. Always returns a positive number irrespective of the -relative order of the parameters +relative order of the parameters. + +Note: This routine assumes neither the passed start_dt nor end_dt can be a closed day + +=head2 hours_between + +$duration = $calendar->hours_between($start_dt, $end_dt); + +Passed two dates returns a DateTime::Duration object measuring the length between them +ignoring closed days. Always returns a positive number irrespective of the +relative order of the parameters. + +Note: This routine assumes neither the passed start_dt nor end_dt can be a closed day =head2 next_open_days -- 2.39.5