how to calculate hours and minutes to seconds code example Example: how to turn hours to seconds #multiply the time value by 3600