def floatSecondsFromTimedelta(td):
 sec = (((td.days * _FLOAT_SECONDS_IN_A_DAY) + (td.seconds * 1.0)) + (td.microseconds / 1000000.0))
 return sec

def floatSecondsFromTimedelta ( td ) : sec = ( ( ( td . days * _FLOAT_SECONDS_IN_A_DAY ) + ( td . seconds * 1.0 ) ) + ( td . microseconds / 1000000.0 ) ) return sec
convert datetime .