const secondsPerDay = 60 * 60 * 24;
const secondsPerHour = 60 * 60;
const secondsPerMinute = 60;
var seconds = resources["Uptime"]
var days = Math.floor(seconds / secondsPerDay);
seconds %= secondsPerDay;
var hours = Math.floor(seconds / secondsPerHour);
seconds %= secondsPerHour;
var minutes = Math.floor(seconds / secondsPerMinute);
seconds %= secondsPerMinute;
var uptime = "";
if(days > 0) { 
	uptime += days + " Days, " + hours + " Hours, " + minutes + " Minutes";
} else {
    uptime += hours + " Hours, " + minutes + " Minutes, " + seconds + " Seconds";
}
return(uptime);