Converting Seconds to H:M:S

If the item from your previous illustration is providing the uptime as a number of seconds, it should be possible to get that number via something like:

myItem.state

And this thread on converting strings to numbers could be useful.