Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Markus Tacker <tacker <at> php.net>
Subject: Re: [PEPr] Proposal for Date and Time::Date_HumanDiff
Newsgroups: gmane.comp.php.pear.devel
Date: Tuesday 17th April 2012 11:58:46 UTC (over 5 years ago)
Hoi Christian,

On Tue, Apr 17, 2012 at 14:45, Christian Weiske  wrote:
> Christian Weiske (http://pear.php.net/user/cweiske)
proposes Date and Time::Date_HumanDiff.

Good idea to bake this into a pear package!

- There should be an addFormat($fmt) method.
- make sure that formats is sorted by the threshold
- formats should be an entity
- get() should accept DateTime objects
- Put the english localisation in a subclass HumanDiff_EN
- Missing PHP docs in the tests file
- remove the ?> at EOF

Just my 2cents™.

-- 
  mit freundlichen Grüßen
  Markus Tacker ~ http://tckr.cc/

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
CD: 3ms