ZF-3536: Missing a measure class for duration values (Zend_Date is for point of time )
Description
Missing a measure class for duration values (Zend_Date is for a point of time ) e.g. Zend_Measure_Duration constants:
Zend_Measure_Duration::MILLISECOND
Zend_Measure_Duration::SECOND
Zend_Measure_Duration::MINUTE
// ...
example:
$duration = new Zend_Measure_Duration(90, Zend_Measure_Duration::SECOND);
echo $duration->convertTo(Zend_Measure_Duration::MINUTE); // display "1,5 min"
Comments
Posted by Thomas Weidner (thomas) on 2008-06-30T06:19:45.000+0000
Interesting... the original definition included a Zend_Measure_Time... it seems to be lost somewhere between incubator and core.
And nobody asked for it or was missing it since over a year :-)
Posted by Thomas Weidner (thomas) on 2008-06-30T14:42:26.000+0000
Added with r9848
Posted by Thomas Weidner (thomas) on 2008-07-26T11:49:29.000+0000
Fixed within branch 1.5
Posted by Thomas Weidner (thomas) on 2008-07-26T11:51:02.000+0000
Reverted... new feature... not implemented in 1.5 but in 1.6
Posted by Wil Sinclair (wil) on 2008-09-02T10:38:57.000+0000
Updating for the 1.6.0 release.