Bug #1285: mktime(2,0,0,4,4,1999) produces result -1
| From: | howard at koalanet dot com | Date: | Sat, 03 Apr 1999 22:58:43 +0000 |
| Subject: | Bug #1285: mktime(2,0,0,4,4,1999) produces result -1 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4908@lists.php.net to get a copy of this message | ||
From: howard@koalanet.com
Operating system: Unix
PHP version: 3.0.6
PHP Bug Type: Misbehaving function
Bug description: mktime(2,0,0,4,4,1999) produces result -1
<html>
<body>
<?
$timenow = time();
$start_north_america = mktime(2,0,0,4,4,1999);
$end_north_america = mktime(2,0,0,10,31,1999);
if ($timenow > $start_north_america && $timenow < $end_north_america){
echo "Yes<BR>";}
else {echo "No<BR>";}
echo "$start_north_america<BR>";
echo $end_north_america;
?>
</body>
</html>
/* mktime(2,0,0,4,3,1999) or mktime(2,0,0,4,5,1999) produces the correct Unix Timestamp result */
/* Only mktime(2,0,0,4,4,1999) produces -1 */
/* You can see it at www.koalanet.com/timetest.html */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net