InterviewSolution
| 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: 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: 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(). |
|