#23748 [Opn->Bgs]: mktime function return -1 if year<=1970 or year>=2039

From: Date: Thu, 22 May 2003 10:56:45 +0000
Subject: #23748 [Opn->Bgs]: mktime function return -1 if year<=1970 or year>=2039
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40184@lists.php.net to get a copy of this message
ID: 23748 Updated by: derick@php.net Reported By: jcarlos at info-ab dot uclm dot es -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Win32 PHP Version: 4.3.1 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Windows problem... Previous Comments: ------------------------------------------------------------------------ [2003-05-22 03:12:48] jcarlos at info-ab dot uclm dot es Sorry for my english. In Bug #23475: mktime() of dates before 1 jan 1970 gives a timestamp of "-3662" In this case gives a timestamp of "-1" Apache/2.0.45 (Win32) PHP/4.3.1 if $year<=1970 or $year>=2039 In linux? This code: ------------------------------------------------- <? if(!isset($year)) $year="2039"; $month="1"; $day="1"; $t=mktime ( 0, 0, 0, $month, $day, $year); echo date("m-d-Y", $t)." -------- ".$t; ?> -------------------------------------------------- --> Warning: mktime() [function.mktime]: Windows does not support negative values for this function in E:\Archivos de programa\Apache Group\Apache2\htdocs\k.php on line x Thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23748&edit=1

« previous php.bugs (#40184) next »