Bugs in date-class?

From: Date: Tue, 20 Jul 2004 15:27:16 +0000
Subject: Bugs in date-class?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13776@lists.php.net to get a copy of this message
Hi, i think i found an two bug's in your Date-Class or in the Timezone-Class. This is my PHP-Code: echo date("Y-m-d H:i:s")."<br>"; $date =& new Date(); $date2 =& new Date(); $date->isPast($date); echo date("Y-m-d H:i:s")."<br>"; And the ouptut is: 2004-07-20 16:47:52 2004-07-20 14:47:52 I think here is something wrong, because calling the function isPast() changes the output of the date-function (which is a php function). Next Problem is the result of $date->format("%s"). It should return the seconds of a date without a decimal Point, but the result is something like this: 13.000000 Regards Jan

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