Date-Business
    
    
  
  
  
view release on metacpan or search on metacpan
Business.pm view on Meta::CPAN
      my($numHolidays) = $self->{HOLIDAY}->($self->image, $end_txt);
      $self->subb($numHolidays) if ($numHolidays);
  }
  return 1;
}
1;
__END__
=head1 NAME
  Date::Business - fast calendar and business date calculations
=head1 SYNOPSIS
  All arguments to the Date::Business constructor are optional.
  # simplest case, default is today's date (localtime)
  $d = new Date::Business();           
  # initialize with date string, 
  # offset in business days is optional
Business.pm view on Meta::CPAN
  $d->value(); # returns Unix time as integer
  $d->day_of_week();     # 0 = Sunday
  $d->datecmp($x);       # are two dates equal?
  $d->eq($x);            # synonym for datecmp
  $d->lt($x);            # less than
  $d->gt($x);            # greater than
  Calendar date functions
  $d->next();         # next calendar day
  $d->prev();         # previous calendar day
  $d->add(<offset>);  # adds n calendar days
  $d->sub(<offset>);  # subtracts n calendar days
  $d->diff($x);       # difference between two dates  
    
  Business date functions
  $d->nextb();        # next business day
  $d->prevb();        # previous business day
  $d->addb(<offset>); # adds n business days
  $d->subb(<offset>); # subtracts n business days
  $d->diffb($x);      # difference between two business dates  
  $d->diffb($x, 'next'); # treats $d weekend/holiday as next business date
  $d->diffb($x, 'next', 'next'); # treats $x weekend/holiday as above
=head1 DESCRIPTION
Date::Business provides the functionality to perform simple date
manipulations quickly. Support for calendar date and
business date math is provided.
Business dates are weekdays only. Adding 1 to a weekend returns
Monday, subtracting 1 returns Friday.
The difference in business days between Friday and the following
Monday (using the diffb function) is one business day. The number
of business days between Friday and the following Monday (using the
betweenb function) is zero.
DESCRIPTION
Date::Business provides the functionality to perform simple
date manipulations quickly. Support for calendar date and
business date math is provided.
 
Business dates are weekdays only. Adding 1 to a weekend
returns Monday, subtracting 1 returns Friday. User defined
Holidays are supported. 
Date::Business works very well for iterating over dates,
and determining start and end dates of arbitray n business day
periods (e.g. consider how to perform a computation for
a series of business days starting from an arbitrary day).
( run in 0.317 second using v1.01-cache-2.11-cpan-c333fce770f )