Changing a number into a time format

How would I change a number into time format. For example, I’d want a number like 10000 to be x days, x hours, x minutes, x seconds.

I’m going to assume “a number” is seconds.

Will convert seconds to anything you want.

The Lua pil goes over a little bit better.

I tried messing with it, but I got 9 hours when my total server playtime is actually ~850 hours

That would be because assumes seconds since 1970, that was my mistake.

That might be more of what you are looking for.

Thanks, just one last question though
Is there a way to select which number you want for whatever format?

EDIT: Got it working, just saved the function return to a variable then printed it out as needed