def scale_timedelta(context, builder, val, srcty, destty):
 factor = npdatetime.get_timedelta_conversion_factor(srcty.unit, destty.unit)
 if (factor is None):
  raise NotImplementedError(('cannot convert timedelta64 from %r to %r' % (srcty.unit, destty.unit)))
 return scale_by_constant(builder, val, factor)

def scale_timedelta ( context , builder , val , srcty , destty ) : factor = npdatetime . get_timedelta_conversion_factor ( srcty . unit , destty . unit ) if ( factor is None ) : raise NotImplementedError ( ( 'cannot convert timedelta64 from %r to %r' % ( srcty . unit , destty . unit ) ) ) return scale_by_constant ( builder , val , factor )
scale the timedelta64 *val* from *srcty* to *destty* .