Use EPANET hour() function in JS.