Lines Matching refs:cron
4 [![Latest Stable Version](https://poser.pugx.org/mtdowling/cron-expression/v/stable.png)](https://packagist.org/packages/mtdowling/cron-expression) [![Total Downloads](https://poser.pugx.org/mtdowling/cron-expression/downloads.png)](https://packagist.org/packages/mtdowling/cron-expression) [![Build Status](https://secure.travis-ci.org/mtdowling/cron-expression.png)](http://travis-ci.org/mtdowling/cron-expression)
6 The PHP cron expression parser can parse a CRON expression, determine if it is
22 composer require mtdowling/cron-expression
33 $cron = Cron\CronExpression::factory('@daily');
34 $cron->isDue();
35 echo $cron->getNextRunDate()->format('Y-m-d H:i:s');
36 echo $cron->getPreviousRunDate()->format('Y-m-d H:i:s');
39 $cron = Cron\CronExpression::factory('3-59/15 2,6-12 */15 1 2-5');
40 echo $cron->getNextRunDate()->format('Y-m-d H:i:s');
43 $cron = Cron\CronExpression::factory('@daily');
44 echo $cron->getNextRunDate(null, 2)->format('Y-m-d H:i:s');
47 $cron = Cron\CronExpression::factory('@monthly');
48 echo $cron->getNextRunDate('2010-01-12 00:00:00')->format('Y-m-d H:i:s');