def TimeDeltaToSeconds(delta):
  """Converts a datetime.timedelta to integer seconds.

  Args:
    delta: a datetime.timedelta object.

  Returns:
    the integer seconds for the timedelta.
  """
  return delta.seconds + (delta.days * 3600 * 24)