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.