Closed pyrech closed 9 years ago
Thanks :)
To get the third business day starting from now (excluding it) you can do something like:
$n = 3;
$date = new \DateTime();
for ($i = 0; $i < $n; $i++) {
$date->modify('+1 day');
$date = $business->closest($date);
}
Ahah, awesome! Thanks :) Let's use business \o/
Nice work on this project. :)
Business is close to what I need (manipulate a list of working days, excluding public holiday) but for my use case, it lacks of interval operations:
I need to do something like:
So I just wonder if this feature could enter in the scope of business?