Hy,

pure PHP only accepts lingual input, but is not able to produce output.

ZF is able to do such, but you need some coding. The following classes are involved:

* Zend_Date for computing the interval and get dateparts
* Zend_Locale for receiving locale aware lingual representations of date parts

Greetings
Thomas
I18N Team Leader


----- Original Message ----- From: "naioshi cozmicboy" <[EMAIL PROTECTED]>
To: "fw-general" <fw-general@lists.zend.com>
Sent: Sunday, November 04, 2007 4:03 PM
Subject: [fw-general] how to convert time interval to text (1 minute ago, 3 months ago...)


Hi all,

I need to convert two datetimes to verbal representation of the
interval between them, e.g.:

(datetime1, datetime2)   -->   string "1 minute" or "3 months" ...

Could you suggest ZF (or non-ZF) solution?
Sorry if this is off-topic.

--
love to learn. love to share

Reply via email to