def tombstone_from_delay(tombstone_delay):
    if (not tombstone_delay):
        return None
    if (not isinstance(tombstone_delay, timedelta)):
        try:
            tombstone_delay = timedelta(seconds=int(tombstone_delay))
        except ValueError:
            return None
    if (not tombstone_delay):
        return None
    if (tombstone_delay < timedelta(0)):
        return datetime(1970, 1, 1)
    return (datetime.utcnow() + tombstone_delay)
def tombstone_from_delay(tombstone_delay):
    if (not tombstone_delay):
        return None
    if (not isinstance(tombstone_delay, timedelta)):
        try:
            tombstone_delay = timedelta(seconds=int(tombstone_delay))
        except ValueError:
            return None
    if (not tombstone_delay):
        return None
    if (tombstone_delay < timedelta(0)):
        return datetime(1970, 1, 1)
    return (datetime.utcnow() + tombstone_delay)