[PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? thanks, tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] days between two timestamps

2002-06-05 Thread 1LT John W. Holmes
05, 2002 11:01 AM Subject: [PHP] days between two timestamps Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? thanks, tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] days between two timestamps

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 23:01, Tyler Longren wrote: Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? These look like mysql timestamps. If you're getting them from mysql, you might try and do

Re: [PHP] days between two timestamps

2002-06-05 Thread Martin Clifford
Holmes... - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 11:01 AM Subject: [PHP] days between two timestamps Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way

Re: [PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
. Holmes [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; php-general [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 10:09 AM Subject: Re: [PHP] days between two timestamps Since those look like MySQL timestamps, I would suggest you do it in your query. SELECT TO_DAYS(column1) - TO_DAYS