def _parse_date_delta(value):
 if (not value):
  return None
 try:
  value = int(value)
 except ValueError:
  pass
 else:
  delta = timedelta(seconds=value)
  return (datetime.now() + delta)
 return _parse_date(value)

def _parse_date_delta ( value ) : if ( not value ) : return None try : value = int ( value ) except ValueError : pass else : delta = timedelta ( seconds = value ) return ( datetime . now ( ) + delta ) return _parse_date ( value )
like _parse_date .