Last Updated: February 25, 2016
·
302
· ferncoder

Zend_Date comparatives method

Hi there,

Here's a little article on my blog speaking about the method isEarlier and isLater of the Zend_Date object.

To be short, those methode are pretty useless and execution time wasting since you can do the same thing with a simple

$timestamp1 = $date1->getTimestamp();
$timestamp2 = date2->getTimestamp();
if ($timestamp1 > $timestamp2) {}

More details here : http://tinyurl.com/8smx4u9