79247268

Date: 2024-12-03 10:57:01
Score: 1
Natty:
Report link

The probably shortest way to convert milliseconds in HH:mm would be:

let timeInMilliseconds = 33000000 let timeInHHmm = ${Math.round(timeInMilliseconds/3600/1000)}h ${Math.round(((timeInMilliseconds/3600 / 1000)-(Math.round(timeInMilliseconds/3600/1000)))*60)}m;

console.log(timeInHHmm)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nico Biesinger