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 [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php