Re: Date subtraction
| From: | almir | Date: | Thu, 22 Mar 2001 19:12:55 +0000 |
| Subject: | Re: Date subtraction | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45168@lists.php.net to get a copy of this message | ||
PERIOD_DIFF(P1,P2)
or convert them both tu unix_time(p1) - unix_time(p2) then you can have
seconds and format them as you want
almir
""BlackLord"" <black_lordus@yahoo.com> schrieb im Newsbeitrag
news:99dcs5$cbh$1@toye.p.sourceforge.net...
> Hi!
>
> I want to subtract to date times from each other. Like :
>
> '2000 12 01 12:12:12' - '2000 11 10 11:39:59'
>
> Is there any function to do this subtraction or can i do it with MySQL's
> SELECT query ?
>
> Thanks
>
>
>
> --
> 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
>