Is there anyway to make use of a timestamp like this? 3w17:00:45 so i could minus is from the current time to find out when the unit was turned on?
If you want to keep it in scripting, you could use something like this script to convert the current time to a timestamp, after which you can subtract the “uptime” from it. The only problem with that is that you then can’t easily convert the resulting timestamp back to a date/time.
If you also put PHP into the mix, you can put the time into a DateInterval object, and substract that from a DateTime of the current time, and just format() the result. The time value will need some processing before it can be converted to a DateInterval though… hmmm…
I released a new version of my API client the other day, and it contains this thing that I’m sure you’ll find interesting. Yes, this very topic was the inspiration for it, and yes, the “hmmm” above is my silliest attempt at foreshadowing, ever
.