note 14698 added to function.mktime.php

From: Date: Fri, 10 Aug 2001 03:12:36 +0000
Subject: note 14698 added to function.mktime.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16530@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. http://www.php.net/manual/en/function.mktime.php

« previous php.notes (#16530) next »