Hey,

I too was fiddeling around with time and I came up with this solution:

Problem: System Uptime is stated in Minutes, which doesn’t look too nice.

So I needed to convert

```
657,6 min
```

Into something more readable.

```
Number CPU_Uptime "Betriebsdauer [JS(mins2hours.js):%s]" (System) { channel="systeminfo:computer:openhab:cpu#uptime" }
```

The mins2hours.js in Transformation folder looks like this:

```
(function(minutes) {
var hours = Math.floor(minutes / 60);
var min = Math.floor(minutes % 60);
if (hours <= 0) {
return "00h " + min + " min";
}
return hours + "h " + min + " min";
})(input)
```

Works best for me. The given solution sometimes returns endless numbers after the comma…