Logo Search packages:      
Sourcecode: zendframework version File versions  Download package

Zend_Date::setMonth ( month,
locale = null 

Sets a new month The month can be a number or a string. Setting months lower then 0 and greater then 12 will result in adding or subtracting the relevant year. (12 months equal one year) If a localized monthname is given it will be parsed with the default locale or the optional set locale. Returned is the new date object

string | integer | array | Zend_Date$monthMonth to set
string | Zend_Locale$localeOPTIONAL Locale for parsing input
Zend_Date new date

Definition at line 3664 of file Date.php.

References _month().

        return $this->_month('set', $month, $locale);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index