The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Business::SLA -

SYNOPSIS

  use Business::SLA;

  my $SLAObj = new Business::SLA;

  $SLAObj->Add('2 real hours', ( 'RealMinutes' => 120, 
                                 'BusinessMinutes' => undef, ));

  $SLAObj->Add('1 business hour', ( 'RealMinutes' => 0, 
                                    'BusinessMinutes' => 60, ));

  $SLAObj->Add('next business minute', ( 'RealMinutes' => 0, 
                                         'BusinessMinutes' => 0, ));

  $SLAObj->SetInHoursDefault('2 real hours');
  $SLAObj->SetOutOfHoursDefault('1 business hour');

DESCRIPTION

This module is a simple tool for handling operations related to Service Level Agreements.

SUPPORT

Send email to bug-business-sla@rt.cpan.org

AUTHOR

    Linda Julien
    Best Practical Solutions, LLC 
    leira@bestpractical.com
    http://www.bestpractical.com

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

perl(1), Business::Hours.

SetBusinessHours

Sets the Business::Hours object for this object.

Takes a Business::Hours object.

BusinessHours

Returns the Business::Hours object.

SetInHoursDefault

Sets the default SLA for times inside of business hours.

Takes a string which is the hash key for the desired SLA.

InHoursDefault

Returns the default SLA for times inside of business hours.

SetOutOfHoursDefault

Sets the default SLA for times outside of business hours.

Takes a string which is the hash key for the desired SLA.

OutOfHoursDefault

Returns the default SLA for times outside of business hours.

IsInHours

Returns 1 if the date passed in is in business hours, and 0 otherwise. If no business hours have been set, returns 1 by default.

Takes a date in Unix time format (number of seconds since the epoch).

SLA

Returns the SLA for the specified time.

Takes a date in Unix time format (number of seconds since the epoch).

Add

Adds an SLA value. Takes a string (the hash key) and a hash.

AddRealMinutes

The number of real minutes to add for the specified SLA.

Takes the hash key for the SLA.

AddBusinessMinutes

The number of business minutes to add for the specified SLA.

Takes the hash key for the SLA.

Starts

Returns the starting time, given an SLA and a date.

Takes a date in Unix time format (number of seconds since the epoch) and the hash key for the SLA.

Due

Returns the due time, given an SLA and a date.

Takes a date in Unix time format (number of seconds since the epoch) and the hash key for the SLA.