Skip to content

Daily and getOccurrencesBetweenΒ #93

@davidh71

Description

@davidh71

I've just started using the library and it's great! The below doesn't work and I'm wondering if my approach is wrong or a defect.
I would expect to get 2 results back - and get nothing.
Many Thanks!

$r = new When\When();
$r->RFC5545_COMPLIANT = When\When::IGNORE;
$r->startDate(new DateTime("20220902"))
->freq("daily")
->interval( 1 );

$occurrences = $r->getOccurrencesBetween(new DateTime("20220902"),new DateTime("20220904"));
var_dump($r->occurrences);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions