1.

How Can I Debug Zend_date In A Simple Way?

Answer»

When you think that you are getting wrong OUTPUT from Zend_Date then it’s often needed to see what Zend_Date really uses internally.

Well., a var_dump of Zend_Date is not really helpful,l but you could simply use getIso(). This format has all date inform actions

AVAILABLE:
$date- >getIso(); I/could return 2009-10-21 T!5:OO:O2O 1:00’

Note that using toString() and outputting only parts of a date does not show all needed information’s. There could be a wrong used timezone, or a DST change which is suppressed by toString() but shown with getIso().

When you think that you are getting wrong output from Zend_Date then it’s often needed to see what Zend_Date really uses internally.

Well., a var_dump of Zend_Date is not really helpful,l but you could simply use getIso(). This format has all date inform actions

available:
$date- >getIso(); I/could return 2009-10-21 T!5:OO:O2O 1:00’

Note that using toString() and outputting only parts of a date does not show all needed information’s. There could be a wrong used timezone, or a DST change which is suppressed by toString() but shown with getIso().



Discussion

No Comment Found