Have you tried to substract one date from the other like described in the manual ?

$date2->sub($date1);

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "debussy007" <[email protected]>
To: <[email protected]>
Sent: Wednesday, February 18, 2009 2:57 PM
Subject: [fw-general] subtract two dates and get result in hours/minutes/seconds



Hi,

How can I subtract a date from another date and get the result in hours,
minutes and seconds ?
e.g.
11 feb 09 01:00:00
11 feb 09 01:02:01

result "0h2m1s"

Thank you fro any help with this !

--
View this message in context: http://www.nabble.com/subtract-two-dates-and-get-result-in-hours-minutes-seconds-tp22079340p22079340.html Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to