This software calculates the number of working hours during a given time period for businesses.
To get started, you can simply import the module using the standard "use" command:
use Business::Hours;
Once you've done that, you can create a new instance of the Business::Hours class by calling the "new" method:
my $hours = Business::Hours->new();
From there, you can use the "for_timespan" method to calculate the business hours for a given time period. The method takes two arguments: "Start" and "End", which define the beginning and end of the time period, respectively. Here's an example:
$hours->for_timespan( Start => time(), End => time()+(86400*7) );
This will return a Set::IntSpan of all the business hours in the next week, using the default business hours of 9am to 6pm localtime.
Overall, Business::Hours is a handy tool that can make your life easier when it comes to calculating business hours. And with plans to add even more functionality in the future, it's definitely worth keeping an eye on.
Version 0.09: N/A