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

Open for business caculation

Thread Next
Eric Beaudoin
March 15, 2002 21:56
Open for business caculation
Message ID:
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.


√Čric Beaudoin               <>
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About