angular minutes to hour and minutes

Solutions on MaxInterview for angular minutes to hour and minutes by the best coders in the world

showing results for - "angular minutes to hour and minutes"
Isidora
08 May 2020
1//If you want to tranform this 90m to this 1h30m ..do this
2var totalTimeInMinutes = 90;
3var hour = Math.floor(totalTimeInMinutes / 60); //1h
4var minutes = totalTimeInMinutes - (hour * 60); //30m