Convert Hours and Minutes to Seconds
MATH
Problem
Given two integers hours and minutes, representing time, return the total number of seconds equivalent to the given hours and minutes.
Examples
hoursMinutesToSeconds(1, 0) // 3600 // 1 hour is equal to 3600 seconds. hoursMinutesToSeconds(0, 30) // 1800 // 30 minutes is equal to 1800 seconds. hoursMinutesToSeconds(1, 15) // 4500 // 1 hour and 15 minutes is equal to 4500 seconds.
Loading...