Re: {PEAR} Calendar getTimeStamp problem

From: Date: Thu, 06 Oct 2005 12:54:32 +0000
Subject: Re: {PEAR} Calendar getTimeStamp problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21259@lists.php.net to get a copy of this message
Hi Gerard,
Is it possible to use the $Month->getTimeStamp() with the PearDate CALENDAR_ENGINE. If I use the following define('CALENDAR_ENGINE', 'PearDate'); $Month = new Calendar_Month_Weekdays($year, $month); $Month->getTimeStamp(); it returns January 1970, however if I do not set the 'CALENDAR_ENGINE' everything works fine.
==================================== <?php define('CALENDAR_ENGINE', 'PearDate'); require_once 'Calendar/Month/Weekdays.php'; $Month = new Calendar_Month_Weekdays(2005, 10); echo $Month->getTimeStamp(); ?> ==================================== output: "2005-10-01 00:00:00". Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

« previous php.pear.general (#21259) next »