Re: mktime error

From: Date: Mon, 05 Apr 2004 12:16:30 +0000
Subject: Re: mktime error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182351@lists.php.net to get a copy of this message
Woops little mistake there, first of all it's 'gmmktime()' secondly the source should look something like: $var = mktime ( 0,0,1,4,4,2004 ) - 1; You can find a nice article on this topic here: http://www.phpbuilder.com/columns/ehresman20030911.php3?page=1 -- red [...] > Your Server will most likely run in a different timezone. If both of you > would use gmktime() the result will be the same. > > As for the negative result: Had the same problem some time ago - seams > to me as if PHP doesn't like those 0,0,0 ( try 0,0,1 instead ) - You can > adjust the result by reducing the result by 1 > > $var = mktime ( 0,0,0,4,4,2004 ) - 1 ; > > -- red [...]

« previous php.general (#182351) next »