ZF-3536: Missing a measure class for duration values (Zend_Date is for point of time )

Issue Type: New Feature Created: 2008-06-30T05:26:49.000+0000 Last Updated: 2008-09-02T10:38:57.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Thomas Weidner (thomas) Tags: - Zend_Measure

Related issues: Attachments:


Missing a measure class for duration values (Zend_Date is for a point of time ) e.g. Zend_Measure_Duration constants:

<pre class="highlight">
// ...


<pre class="highlight">
$duration = new Zend_Measure_Duration(90, Zend_Measure_Duration::SECOND);
echo $duration->convertTo(Zend_Measure_Duration::MINUTE);  // display "1,5 min"


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.