def parse_date_delta(value):
 if (not value):
  return None
 try:
  value = int(value)
 except ValueError:
  return parse_date(value)
 else:
  return (_now() + timedelta(seconds=value))

def parse_date_delta ( value ) : if ( not value ) : return None try : value = int ( value ) except ValueError : return parse_date ( value ) else : return ( _now ( ) + timedelta ( seconds = value ) )
like parse_date .