def _IntStringToInterval(cls, timestring):
    """Parse interval date specification and create a timedelta object.

    Args:
      timestring: string interval.

    Returns:
      A datetime.timedelta representing the specified interval or None if
      unable to parse the timestring.
    """
    seconds = ConvertIntervalToSeconds(timestring)
    return datetime.timedelta(seconds=seconds) if seconds else None