Wildhalf Posted December 6, 2009 Share Posted December 6, 2009 How would i find the difference between 2 difference times that i pull from my database?? Can i just subtract the returned results or what?? Quote Link to comment https://forums.phpfreaks.com/topic/184190-finding-time-difference-from-2-timestamps-pulled-from-mysql-db/ Share on other sites More sharing options...
premiso Posted December 7, 2009 Share Posted December 7, 2009 It depends on the format they are being pulled out of the database, either way you should be able to use strtotime along with the function found at the below webpage to calculate it: Google Results for php time difference Noteable sites: http://www.charles-reace.com/PHP_and_MySQL/Time_Difference/ http://www.gidnetwork.com/b-16.html Quote Link to comment https://forums.phpfreaks.com/topic/184190-finding-time-difference-from-2-timestamps-pulled-from-mysql-db/#findComment-973067 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.