Zend_date relative time?

$d1 = new Zend_Date(); $d2 = new Zend_Date($old_date); $diff = $d1->subDate($d2) After you've got the difference, you can check out one of these helpers: Relative time view helper Zend_View_Helper_Relativetime.

$d1 = new Zend_Date(); $d2 = new Zend_Date($old_date); $diff = $d1->subDate($d2); After you've got the difference, you can check out one of these helpers: Relative time view helper Zend_View_Helper_Relativetime.

You can subtract timestamps of two dates to find difference between them in seconds and then use division and modulo to represent it as minutes, days etc.

Ok, tnx, I thought there might be helpers for this – flufferok Feb 16 '10 at 8:01.

Even if you don't want the whole Zym framework, you could still add their TimeSince view helper to your own application.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions