* You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ use Fisharebest\ExtCalendar\FrenchCalendar; use Fisharebest\ExtCalendar\GregorianCalendar; use Fisharebest\ExtCalendar\JewishCalendar; use Fisharebest\ExtCalendar\JulianCalendar; use Fisharebest\ExtCalendar\Shim; define(FrenchCalendar::PHP_CALENDAR_NAME, FrenchCalendar::PHP_CALENDAR_NUMBER); define(GregorianCalendar::PHP_CALENDAR_NAME, GregorianCalendar::PHP_CALENDAR_NUMBER); define(JewishCalendar::PHP_CALENDAR_NAME, JewishCalendar::PHP_CALENDAR_NUMBER); define(JulianCalendar::PHP_CALENDAR_NAME, JulianCalendar::PHP_CALENDAR_NUMBER); define('CAL_NUM_CALS', 4); define('CAL_DOW_DAYNO', 0); define('CAL_DOW_SHORT', Shim::emulateBug67960() ? 1 : 2); define('CAL_DOW_LONG', Shim::emulateBug67960() ? 2 : 1); define('CAL_MONTH_GREGORIAN_SHORT', 0); define('CAL_MONTH_GREGORIAN_LONG', 1); define('CAL_MONTH_JULIAN_SHORT', 2); define('CAL_MONTH_JULIAN_LONG', 3); define('CAL_MONTH_JEWISH', 4); define('CAL_MONTH_FRENCH', 5); define('CAL_EASTER_DEFAULT', 0); define('CAL_EASTER_ROMAN', 1); define('CAL_EASTER_ALWAYS_GREGORIAN', 2); define('CAL_EASTER_ALWAYS_JULIAN', 3); define('CAL_JEWISH_ADD_ALAFIM_GERESH', 2); define('CAL_JEWISH_ADD_ALAFIM', 4); define('CAL_JEWISH_ADD_GERESHAYIM ', 8); function cal_days_in_month($calendar, $month, $year) {