Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_View_Helper_HumanTime Component Proposal

Proposed Component Name Zend_View_Helper_HumanTime
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_HumanTime
Proposers Martin Hujer
Zend Liaison TBD
Revision 1.0 - 31 July 2008: Initial Draft. (wiki revision: 7)

Table of Contents

1. Overview

Zend_View_Helper_HumanTime is a view helper that formats time and date into human easy readable format like:

  • in 2 days
  • tomorrow
  • today
  • in 2 hours
  • in about an hour
  • in a few seconds
  • few seconds ago
  • 10 minutes ago
  • 2 hours ago
  • yesterday
  • 2 days ago
  • a week ago
  • a month ago

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • this class must format date and time in human readable form
  • this class must allow translating of messages
  • $languageCode should be taken from general Zend_Locale object
  • some language files should be provided by default

4. Dependencies on Other Framework Components

  • Zend_Exception
  • Zend_Date
  • Zend_Locale
  • Zend_View_Helper_Abstract

5. Theory of Operation

...

6. Milestones / Tasks

  • Milestone 1: Create proposal
  • Milestone 2: Get comments
  • Milestone 3: Update proposal
  • Milestone 4: Create code and unit tests
  • Milestone 5: Write docs

7. Class Index

  • Zend_View_Helper_HumanTime

8. Use Cases

UC-01

9. Class Skeletons

SVN repo

]]></ac:plain-text-body></ac:macro>

]]></ac:plain-text-body></ac:macro>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 25, 2009

    <p>Archived because there are better proposals:
    <a class="external-link" href="http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_TimeUntil+-+Geoffrey+Tran">http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_TimeUntil+-+Geoffrey+Tran</a>
    <a class="external-link" href="http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_TimeSince+-+Geoffrey+Tran">http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Helper_TimeSince+-+Geoffrey+Tran</a></p>