tools/android/modularization/loc/modularization_loc_stat.py
def GetDateRange(*, past_days: int) -> Tuple[str, str]:
  """Returns start and end date for a period of past days.

  Use the results as start_date and end_date of GenerateLOCStats.
  """
  today = datetime.date.today()
  delta = datetime.timedelta(days=past_days)
  past = datetime.datetime(today.year, today.month, today.day) - delta
  return (past.date().isoformat(), today.isoformat())
Returns start and end date for a period of past days.

  Use the results as start_date and end_date of GenerateLOCStats.
  
Returns start and end date for a period of past days.
Returns start and end date for a period of past days .
def GetDateRange(*, past_days: int) -> Tuple[str, str]:
  today = datetime.date.today()
  delta = datetime.timedelta(days=past_days)
  past = datetime.datetime(today.year, today.month, today.day) - delta
  return (past.date().isoformat(), today.isoformat())
def GetDateRange ( * , past_days : int ) -> Tuple [ str , str ] : today = datetime . date . today ( ) delta = datetime . timedelta ( days = past_days ) past = datetime . datetime ( today . year , today . month , today . day ) - delta return ( past . date ( ) . isoformat ( ) , today . isoformat ( ) )
Returns start and end date for a period of past days.
Returns start and end date for a period of past days .
"""Returns start and end date for a period of past days.

  Use the results as start_date and end_date of GenerateLOCStats.
  """
past_days
int