Re: mktime() not allowing dates before 1970
| From: | Monte Ohrt | Date: | Thu, 25 Jan 2001 19:30:44 +0000 |
| Subject: | Re: mktime() not allowing dates before 1970 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36687@lists.php.net to get a copy of this message | ||
use Date_Calc.
http://www.phpinsider.com/php/code/Date_Calc/
Diego Fulgueira wrote:
>
> 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.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/