import time


def _is_in_last_12_months(review):
  """Returns True iff review has been entered in last 12 months."""
  today_iso = time.strftime("%Y%m%d")
  year = int(today_iso[:4])
  last_year_iso = "%s%s" % (year - 1, today_iso[4:])
  review_date = review.entered_date.replace("-", "")
  return review_date >= last_year_iso