def _to_secs(delta):
 return (((delta.days * 86400.0) + delta.seconds) + (delta.microseconds / 1000000.0))

def _to_secs ( delta ) : return ( ( ( delta . days * 86400.0 ) + delta . seconds ) + ( delta . microseconds / 1000000.0 ) )
convert a :py:class:datetime .