Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Date
-
Labels:None
Description
Add a function or multiple functions to calculate the difference between two date objects or date strings.
The returned datepart should be selectable.
f.e.:
$date->getDifference($date2, Zend_Date::MINUTES);
$date->getDifference($date2, Zend_Date::SECONDS);
and so on...
My solution :
Note: $_options is a static property of Zend_Date, there is no method to access it from a derived class.