yohang/CalendR

Period\Range::contains

ovgray opened this issue · 3 comments

Shouldn't this method return true if $date->format('U') == $this->begin->format('U')?

It should, and the same goes for the Range end DateTime, i'll fix that.

Wait - isn't the idea that a period object represents the period from and including 'begin' to and excluding 'end'?

Fixed by 81e1ac0