develooper Front page | perl.beginners | Postings from March 2002

Open for business caculation

Thread Next
From:
Eric Beaudoin
Date:
March 15, 2002 21:56
Subject:
Open for business caculation
Message ID:
5.1.0.14.2.20020316003430.00aa3e38@pop.videotron.ca
Hi everyone,

I'm working on a script that will compile statistics for helpdesk tickets. To compute these stats, I need to be able count the number of "business hours" between the opening and the resolution of tickets. The working hours are 08:00 to 17:00 so a ticket opened on Monday at 16:00 and closed at Wednesday at 10:00 took 11 hours to solve. Weekends and holydays are off.

Before going to the trouble of writing functions that will deal with dates in this fashion, I was wondering if anybody knew either a simple way to do it or a module that would deal with it. I browsed the CPAN's Date and Time modules (there are lots of them) and couldn't find anything doing what I wanted. I thought I would ask here if anybody had pointers for me.

TIA

----------------------------------------------------------
√Čric Beaudoin               <mailto:beaudoer@videotron.ca>
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About