« Return to Thread: [PEPr] Proposal for Date and Time::Date_HumanDiff

Re: [PEPr] Proposal for Date and Time::Date_HumanDiff

by Markus Tacker-3 :: Rate this Message:

| View in Thread

Hoi Christian,

On Tue, Apr 17, 2012 at 14:45, Christian Weiske <cweiske@...> 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

 « Return to Thread: [PEPr] Proposal for Date and Time::Date_HumanDiff