php-general | 2001032
Date: 03/22/01
- Next message: kris <email protected>: "[PHP] need help with cookies"
- Previous message: J.R. Carlson: "[PHP] imagepstext"
- In reply to: BlackLord: "[PHP] Date subtraction"
- Next in thread: Jeff Armstrong: "RE: [PHP] Date subtraction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> schrieb im Newsbeitrag
news:99dcs5$cbh$1 <email protected>
> 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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: kris <email protected>: "[PHP] need help with cookies"
- Previous message: J.R. Carlson: "[PHP] imagepstext"
- In reply to: BlackLord: "[PHP] Date subtraction"
- Next in thread: Jeff Armstrong: "RE: [PHP] Date subtraction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

