def date_in_interval(date, start, end):
  """Check if date is within start and end.

  Args:
    date: Tuple of (year, month, day).
    start: Start date (year, month, day).
    end: End date (year, month, day).

  Returns:
    a bool of whether start <= date <= end.
  """
  date_int = _datetup2int(date)
  start_int = _datetup2int(start) if start else 0
  end_int = _datetup2int(end) if end else 21000000
  return date_int >= start_int and date_int <= end_int
Check if date is within start and end.

  Args:
    date: Tuple of (year, month, day).
    start: Start date (year, month, day).
    end: End date (year, month, day).

  Returns:
    a bool of whether start <= date <= end.
  
language/templama/templama.py