def _bios_date(): """Generate a random date for system's BIOS between today and 10 years ago. :return: A random `datetime.date` that falls within the last 10 years from today. :rtype: object """ # Today is... today = datetime.date.today() # and 10 years ago (~365 days * 10 years) is ten_years_ago = today - datetime.timedelta(3650) return FauxFactory.generate_date(ten_years_ago, today)