Issues

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

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 :-)

Added with r9848

Fixed within branch 1.5

Reverted... new feature... not implemented in 1.5 but in 1.6

Updating for the 1.6.0 release.