We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d661e commit 1382d7dCopy full SHA for 1382d7d
1 file changed
README.md
@@ -28,9 +28,10 @@ composer require adhocore/cron-expr:0.1.0
28
29
```php
30
use Ahc\Cron\Expression;
31
+use Ahc\Cron\Normalizer;
32
33
Expression::isDue('@always');
-Expression::isDue('@hourly', '2015-01-01 00:00:00');
34
+Expression::isDue(Normalizer::HOURLY, '2015-01-01 00:00:00');
35
Expression::isDue('*/20 * * * *', new DateTime);
36
Expression::isDue('5-34/4 * * * *', time());
37
@@ -92,6 +93,8 @@ Following tags are available and they are converted to real cron expressions bef
92
93
- *@30minutes* - every 30 minutes
94
- *@always* - every minute
95
96
+> You can refer them with constants from `Ahc\Cron\Normalizer` like `Ahc\Cron\Normalizer::WEEKLY`
97
+
98
### Modifiers
99
100
Following modifiers supported
0 commit comments