File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,10 @@ composer require adhocore/cron-expr:0.1.0
2828
2929``` php
3030use Ahc\Cron\Expression;
31+ use Ahc\Cron\Normalizer;
3132
3233Expression::isDue('@always');
33- Expression::isDue('@hourly' , '2015-01-01 00:00:00');
34+ Expression::isDue(Normalizer::HOURLY , '2015-01-01 00:00:00');
3435Expression::isDue('*/20 * * * *', new DateTime);
3536Expression::isDue('5-34/4 * * * *', time());
3637
@@ -92,6 +93,8 @@ Following tags are available and they are converted to real cron expressions bef
9293- * @30minutes * - every 30 minutes
9394- * @always * - every minute
9495
96+ > You can refer them with constants from ` Ahc\Cron\Normalizer ` like ` Ahc\Cron\Normalizer::WEEKLY `
97+
9598### Modifiers
9699
97100Following modifiers supported
You can’t perform that action at this time.
0 commit comments