Re: {PEAR} Calendar getTimeStamp problem

From: Date: Thu, 06 Oct 2005 18:31:34 +0000
Subject: Re: {PEAR} Calendar getTimeStamp problem
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21266@lists.php.net to get a copy of this message
Hi Gerard,
My mistake. $Month->getTimeStamp works fine I was using the date function to format the date, but getTimeStamp does not return a Unix timestamp,
no, it returns an ISO-8601 timestamp
so it was returning 01 January 1970. date('F Y', $Month->getTimeStamp()) Is there a way to easy format the iso-8601 date format eg. ruturn October 2005
echo date('F Y', strtotime($Month->getTimeStamp())); HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

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