def scale_by_constant(builder, val, factor):
 return builder.mul(val, Constant.int(TIMEDELTA64, factor))

def scale_by_constant ( builder , val , factor ) : return builder . mul ( val , Constant . int ( TIMEDELTA64 , factor ) )
multiply *val* by the constant *factor* .