1
0
mirror of https://github.com/simshaun/recurr.git synced 2025-03-15 03:39:46 +01:00
This commit is contained in:
Shaun Simmons 2013-06-12 21:11:54 -04:00
parent 6f551cca3f
commit 4b39ba8f2a

@ -33,6 +33,19 @@ require 'vendor/autoload.php';
```
Demo
-----------
```php
$timezone = 'America/New_York';
$startDate = new \DateTime('2013-06-12 20:00:00', new \DateTimeZone($timezone));
$rule = new \Recurr\RecurrenceRule('FREQ=MONTHLY;COUNT=5', $startDate, $timezone);
$transformer = new \Recurr\RecurrenceRuleTransformer($rule);
print_r($transformer->getComputedArray());
```
Contribute
----------