def maybe_s_to_ms(v):
 return (int((float(v) * 1000.0)) if (v is not None) else v)

def maybe_s_to_ms ( v ) : return ( int ( ( float ( v ) * 1000.0 ) ) if ( v is not None ) else v )
convert seconds to milliseconds .