Page 1 of 1

How to find difference of two dates

Posted: Tue May 08, 2007 3:53 am
by eshban
Im wondering what code would be needed to work out the time difference between two times shown on a 24 hour clock such as 15:30:30 and 16:45:30 this would be 01:15:00 time difference. Is there anyway for php to show the time difference between two recorded times but also show a message if the times arent found?

Posted: Tue May 08, 2007 9:37 am
by feyd
Take a look at printf's (that's the username) code snippet in Code Snippets.