Zend Framework

Missing a measure class for duration values (Zend_Date is for point of time )

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.2
  • Fix Version/s: 1.6.0
  • Component/s: Zend_Measure
  • Labels:
    None

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"

Activity

Hide
Thomas Weidner added a comment -

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

Show
Thomas Weidner added a comment - 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
Hide
Thomas Weidner added a comment -

Added with r9848

Show
Thomas Weidner added a comment - Added with r9848
Hide
Thomas Weidner added a comment -

Fixed within branch 1.5

Show
Thomas Weidner added a comment - Fixed within branch 1.5
Hide
Thomas Weidner added a comment -

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

Show
Thomas Weidner added a comment - Reverted... new feature... not implemented in 1.5 but in 1.6
Hide
Wil Sinclair added a comment -

Updating for the 1.6.0 release.

Show
Wil Sinclair added a comment - Updating for the 1.6.0 release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: