![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
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 .. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
fuck im so stupid..
got it: $hours = intval(intval($seconds) / 3600); $minutes = intval(($seconds / 60) % 60); :-) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
I can change this!!!!!
Join Date: Feb 2004
Posts: 18,972
|
Well glad you worked that out lol
|
![]() |
![]() ![]() ![]() ![]() ![]() |