You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you thought at all about adding support for business days?
So for example, if
$date = new ExpressiveDate; // Let's say this is a Friday
$date->addDays(1); // This would give you Saturday
$date->addBusinessDays(1); // This would give you Monday
Support for holidays would be a little more complicated, because we would probably need to pass in the holidays into object configuration somehow, since it will vary by country / locale.
But maybe, $holidays were an array of date objects:
$holidays = array(
$monday
);
ExpressiveDave::initializeHolidays($holidays);
$date->addBusinessDays(1); // This would be Tuesday, since Monday is holiday
The text was updated successfully, but these errors were encountered:
Have you thought at all about adding support for business days?
So for example, if
Support for holidays would be a little more complicated, because we would probably need to pass in the holidays into object configuration somehow, since it will vary by country / locale.
But maybe,
$holidays
were an array of date objects:The text was updated successfully, but these errors were encountered: