def aggregationDivide(dividend, divisor):
 dividendMonthSec = aggregationToMonthsSeconds(dividend)
 divisorMonthSec = aggregationToMonthsSeconds(divisor)
 if (((dividendMonthSec['months'] != 0) and (divisorMonthSec['seconds'] != 0)) or ((dividendMonthSec['seconds'] != 0) and (divisorMonthSec['months'] != 0))):
  raise RuntimeError('Aggregation dicts with months/years can only be inter-operated with other aggregation dicts that contain months/years')
 if (dividendMonthSec['months'] > 0):
  return (float(dividendMonthSec['months']) / divisor['months'])
 else:
  return (float(dividendMonthSec['seconds']) / divisorMonthSec['seconds'])

def aggregationDivide ( dividend , divisor ) : dividendMonthSec = aggregationToMonthsSeconds ( dividend ) divisorMonthSec = aggregationToMonthsSeconds ( divisor ) if ( ( ( dividendMonthSec [ 'months' ] != 0 ) and ( divisorMonthSec [ 'seconds' ] != 0 ) ) or ( ( dividendMonthSec [ 'seconds' ] != 0 ) and ( divisorMonthSec [ 'months' ] != 0 ) ) ) : raise RuntimeError ( 'Aggregation dicts with months/years can only be inter-operated with other aggregation dicts that contain months/years' ) if ( dividendMonthSec [ 'months' ] > 0 ) : return ( float ( dividendMonthSec [ 'months' ] ) / divisor [ 'months' ] ) else : return ( float ( dividendMonthSec [ 'seconds' ] ) / divisorMonthSec [ 'seconds' ] )
return the result from dividing two dicts that represent date and time .