note 14698 rejected and deleted from function.mktime.php by alindeman
| From: | alindeman@php.net | Date: | Fri, 10 Aug 2001 12:40:32 +0000 |
| Subject: | note 14698 rejected and deleted from function.mktime.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16540@lists.php.net to get a copy of this message | ||
I find a problem when use mktime. Here is the code segment:
<?php
$val = mktime(0,0,0,12,4,1964);
echo "$val<br>n";
?>
This simple program return -160214400. It is impossible and I think each programmer must check the
return value of mktime and ensure that it is positive. Otherwise, the program will have bugs.