componentsToSeconds static method

int componentsToSeconds(
  1. int hours,
  2. int minutes,
  3. int seconds
)

Implementation

static int componentsToSeconds(int hours, int minutes, int seconds)
{
  return (hours * secondsPerHour) + (minutes * secondsPerMinute) + seconds;
}