Programmer's Reference Guide

Additional informations on Zend_Currency


Additional informations on Zend_Currency

Comments

This guide came in handy for our IT jobs site, the Zend_Date API overview was good
I don't understand why there is no simple explanation here of what params can be passed to new Zend_Date(). For example, the first thing you see on a php.net manual page is something like

string date ( string $format
My previous comment was truncated by this form for no reason. I guess this is running on Zend too.
Keith...this is buried in the documentation under Zend_Date API Overview, working with date values:

$date1 = new Zend_Date('Feb 31, 2007', null, 'en_US');
echo $date1, "\n"; // outputs "Mar 3, 2007 12:00:00 AM"

$date2 = new Zend_Date('Feb 31, 2007', Zend_Date::DATES, 'en_US');
echo $date2, "\n"; // outputs "Mar 3, 2007 12:00:00 AM"

// strictly restricts interpretation to specified format
$date3 = new Zend_Date('Feb 31, 2007', 'MM.dd.yyyy');
echo $date3, "\n"; // outputs "Mar 3, 2007 12:00:00 AM"

+ Add A Comment

Please do not report issues via comments; use the ZF Issue Tracker.

If you have a JIRA/Crowd account, we suggest you login first before commenting.

  • BBCode is allowed in the comment markup

  • Select a Version

    Languages Available

    Components

    Search the Manual