def TimedeltaToTotalSeconds(td):
  return ((td.microseconds + (td.seconds + td.days * 24.0 * 3600.0) * 10 ** 6) /
          10 ** 6)
Returns the total seconds in a C{datetime.timedelta} object.
dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/TimedeltaToTotalSeconds