Thanks for explanation this is really helpful.
So I did created the separate file called minstohours.js
I renamed my item definition to
Number MyDevice3_Time_Day "Total Runtime Today [JS(minstohours.js):%d]" <line-increase> (Restore)
Is the restart of OH required at this point ? Still seeing time in minutes at the moment so probably made mistake somewhere along
EDIT: I tried restart minute ago but that didn
t made any difference. Looking at the log file can see the following info, its complaining about this .js file for some reason.
Caused by: java.io.FileNotFoundException: /etc/openhab2/transform/minstohours.js (No such file or directory)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?]
at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[?:?]
at java.io.FileInputStream.<init>(FileInputStream.java:93) ~[?:?]