parameters: (self)
return_statement: return self.seconds * _MILLIS_PER_SECOND + millis
docstring: Converts a Duration to milliseconds.
docstring_summary: Converts a Duration to milliseconds.
docstring_tokens: Converts a Duration to milliseconds .
function: def ToMilliseconds(self):
      """Converts a Duration to milliseconds."""
      millis = _RoundTowardZero(self.nanos, _NANOS_PER_MILLISECOND)
      return self.seconds * _MILLIS_PER_SECOND + millis
function_tokens: def ToMilliseconds ( self ) : millis = _RoundTowardZero ( self . nanos , _NANOS_PER_MILLISECOND ) return self . seconds * _MILLIS_PER_SECOND + millis