Does PHP have standard types for working with date/time period?
For example, now I have entity Period:
class Period
{
/**
* @var \DateTime
*/
protected $start;
/**
* @var \DateTime
*/
protected $end;
}
And I don't want to reinvent the wheel. I need comparison functions and so on. Can you suggest me something? Thanks.
P.S. I know about \DateInterval, but I talk about period with specified dates.