1function convert(t) {
2 const dt = new Date(t);
3 const hr = dt.getUTCHours();
4 const m = "0" + dt.getUTCMinutes();
5
6 return hr + ':' + m.substr(-2)
7}
8
9console.log(convert(1542895249079));
10console.log(convert(1542897015049));
11console.log(convert(1542902445344));