Re: [PHP] date calculations

2002-03-04 Thread DL Neil
Yow Sven, I need to calculate the Time ( days hour minutes between 2 times ) I have something but I have an error margine of 10 % and that is to high Time one 2002/02/24 10:23:43 Time two 2002/02/02 12:43:12 this need to give me the correct time in days hours and minutes between the 2

Re: [PHP] Date calculations

2002-02-21 Thread Andrey Hristov
look at the mysql docs at www.mysql.com/doc/ there are some functions about times. it is easy to work with time intervals. Best regards, Andrey Hristov - Original Message - From: Sven Jacobs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:56 PM Subject:

Re: [PHP] Date calculations

2002-02-21 Thread Edward van Bilderbeek - Bean IT
? $date1 = 2002-02-25 10:02:04; $date2 = 2002-02-24 09:02:04; list($date1,) = explode( , $date1); list($date2,) = explode( , $date2); list($year1, $month1, $day1) = explode(-, $date1); list($year2, $month2, $day2) = explode(-, $date2); $intdate1 = mktime('0', '0', '0', $month1, $day1,