Skip to content

Instantly share code, notes, and snippets.

View rickymatthews's full-sized avatar

rickymatthews

View GitHub Profile
@rickymatthews
rickymatthews / next_business_day.php
Created June 2, 2017 11:49 — forked from herveguetin/next_business_day.php
Retrieve the next business or calendar day in Magento with an optional leadtime. Magento weekend days config is taken into account.
<?php
/**
* Retrieve the next business day with an optional leadtime.
* If leadtime = 1 => find the next business day
* If leadtime = 2 => find the "next next" business day
* etc...
*
* @param int $leadtime
* @return string|bool
*/