I'm trying to calculate the time between the current time and the time that the device has changed for the last time.

&hs.setdevicestring(259,TIME-NOW,true) doesn't work

And is it possible to calculate the time in hours:min when the current time-the time that the device has changed for the last time < 24 hours and calculate the time in days when the current time-the time that the device has changed for the last time > 24 hours?

I want to show show the occupation time in hours or days depending on < 24 hours and > 24 hours in HStouch.

For example:

01:30

or

2 days

&hs.setdevicestring(259,TIME-NOW,true) doesn't work

And is it possible to calculate the time in hours:min when the current time-the time that the device has changed for the last time < 24 hours and calculate the time in days when the current time-the time that the device has changed for the last time > 24 hours?

I want to show show the occupation time in hours or days depending on < 24 hours and > 24 hours in HStouch.

For example:

01:30

or

2 days

## Comment