Se agregan los festivos de Colombia, con el fin de poder agregar dias hábiles.
Via Composer
$ composer require torreswil/carbon-colombia
$fecha = CarbonColombia::create(2019,04,16);
$fecha->addBussinessDays(5);
echo $fecha->toDateString();
//imprime 2019-04-25
$fecha = CarbonColombia::create(2019,04,16);
$fecha2 = CarbonColombia::create(2019,04,25);
echo $fecha->diffInBussinessDays($fecha2);
//imprime 5
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email wtorresariza@gmail.com instead of using the issue tracker.
- Wilfredo Torres
- Inspirado en: luisplata/DiasFestivosColombia
The MIT License (MIT). Please see License File for more information.