PHP code example of fovxveym69 / cron-expression
1. Go to this page and download the library: Download fovxveym69/cron-expression library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fovxveym69 / cron-expression example snippets
= Cron\Cronexpr::parse('* * * * *');
echo $cron->next()->format('Y-m-d H:i:s');
= Cron\Cronexpr::parse('* * * * *');
// $cron->next()->format('Y-m-d H:i:s');
$cron->next('now','PRC')->format('Y-m-d H:i:s');
ron = Cron\Cronexpr::parse('* * * * *');
$cron = Cron\Cronexpr::mustParse('* * * * *');
// $cron->next()->format('Y-m-d H:i:s');
// $cron->next('now','PRC')->format('Y-m-d H:i:s');
$cron->nextN('10'); //return array