mktime() not allowing dates before 1970

From: Date: Thu, 25 Jan 2001 19:21:02 +0000
Subject: mktime() not allowing dates before 1970
Groups: php.general 
Request: Send a blank email to php-general+get-36686@lists.php.net to get a copy of this message
I know the UNIX epoch is 1/1/1970 and that mktime() returns the number of seconds between that date and the date specified by its parameters. If this date is before 1/1/1970, it always returns -1, not a large negative number, which would be more reasonable, i think. The question is: How can I know the number of seconds ellapsed between any date in the past and today? Thanks in advance.

« previous php.general (#36686) next »