code: def times_to_ms(h=0, m=0, s=0, ms=0):
      
      ms += s * 1000
      ms += m * 60000
      ms += h * 3600000
      return int(round(ms))
docs: Convert hours, minutes, seconds to milliseconds.
      
      Arguments may be positive or negative, int or float,
      need not be normalized (``s=120`` is okay).
      
      Returns:
          Number of milliseconds (rounded to int).