Try this:

```
(function(minutes) {
return Math.floor(minutes / 60);
})(input)
```

The floor() method rounds a number downwards to the nearest integer, and returns the result.

And if you want to show minutes also here’s a script that i use to transform daylight lenght to minutes + hrs. It’s a number item but use “%s” as shown.

```
Number astroDaylight "Daylight [JS(daylight.js):%s]" { channel="astroblahblah..." }
```

**daylight.js**

```
(function(minutes) {
var hours = Math.floor(minutes / 60);
minutes -= Math.floor(hours * 60);
if (hours <= 0) {
return "00:" + minutes + " hrs";
}
return hours + ":" + minutes + " hrs";
})(input)
```