Julien Bréda schreef:
Strange, my output :
2007-03-30T14:53:07+02:00
2007
7-3-31T01:00:00+0100
7
Warning: easter_date() [function.easter-date]: This function is only valid
for years between 1970 and 2037 inclusive
Andries :
Have you used clone or getDate() ? Your output make me think that you use
clone because of the time part not set to 00:00:00
Tried both.... here's the output without using clone:
2007-03-30T15:04:23+02:00
2007
2007-03-31T02:00:00+02:00
2007
code snippet:
require_once 'Zend/Date.php';
class Fxc_Date_Public extends Zend_Date
{
public function getNextWorkingDate()
{
$candidate = $this->getDate();
$candidate -> addDay(1);
return $candidate;
}
}
$today = new Fxc_Date_Public();
print "<br>".$today->get(Zend_Date::ISO_8601);
print "<br>".$today->get(Zend_Date::YEAR);
$nextDay = $today -> getNextWorkingDate();
print "<br>".$nextDay->get(Zend_Date::ISO_8601);
print "<br>".$nextDay->get(Zend_Date::YEAR);
--
Andries Seutens
http://andries.systray.be
Gecontroleerd op virussen door de JOJO Secure Gateway.