Dave Rolsky wrote:
This all seems like it could go into DT::F::Duration though, just with different strftime-type specifiers (or CLDR, or whatever).

Absolutely it could and should. %c and %x and %X would be the obvious first candidates along with the alternate %{...} format for other CLDR formats.

Dan, please consider working at extending DateTime::Locale to include the duration formats and then working at helping me to extend DateTime::Format::Duration to make use of that data.

Alternately, once CLDR duration locales are imported into DateTime::Locale, write a module named something like DateTime::Format::Duration::Locale that makes use of the data.

The normalisation functions in DateTime::Format::Duration give it its real power so I would suggest you wrap the _as_deltas methods in whatever you decide to do.

Cheers!
Rick Measham
--
Message  protected for iSite by MailGuard: e-mail anti-virus, anti-spam and 
content filtering.
http://www.mailguard.com.au


Reply via email to