Skip to content

horego-app/business-day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Business Day

Date calculation based on business calendars

Installation

$ composer require printerous/business-day

Usage

$business = new BusinessDay(new Config());
$today = new DateTime('2017-06-08');
$business->next($today); // '2017-06-09'
$business->next($today, 2); // '2017-06-12'

//Set holidays
$holidays = [
    new DateTime('2017-06-13'),
    new DateTime('2017-06-14')
];
$business = new BusinessDay(new Config($holidays));
$today = new DateTime('2017-06-13');
$business->next($today); // '2017-06-15'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages