![]() |
stupid php time conversion question
not really php even but it will attract the right people i hope:
3600 seconds is 1 hour so i want to display the hours its 3600/3600 = 1 7200 is 2 hours 7200 / 3600 = 2 7260 is 2 hours and 1 minute but how do i calculate that? 10740 for example is 2:59 .. |
fuck im so stupid..
got it: $hours = intval(intval($seconds) / 3600); $minutes = intval(($seconds / 60) % 60); :-) |
Well glad you worked that out lol
|
All times are GMT -7. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123