Thread: Time and MOD
View Single Post
  #1  
Old 12-20-2011, 11:21 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Time and MOD

I have this, and the seconds and mins are going right, but its almost like the hours, days, and year aren't MOD at all, being it shows up 797 hours and 51 days and 1 year and there are definitely not that many seconds.

I was just trying to calculate the seconds up to years, without showing more than an actual min, hour, day, week, and year, in a year, allowed.

PHP Code:
function configureOnlinetime(time) {
  
//calculate time frames
  
temp.seconds int(time 60);
  
temp.minutes int((time 60) % 60);
  
temp.hours int((time 3600) % 3600);
  
temp.days int((time 86400) % 86400);
  
temp.weeks int((time 604800) % 604800);
  
temp.years int((time 3153600) % 3153600);
  
//display time
  
Profile_TextEdit23.text = @ years " yrs," weeks 
    
" wks," days " days," 
    
hours " hrs," minutesro " mins," 
    
seconds " secs";


time = the seconds i have.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote