doubledate.eoy#
- doubledate.eoy(date: date, offset: int = 0) date #
Returns the end of the year, i.e. the 31 December of the date’s year, then optionally offset by
offset
years.- Parameters:
date (datetime.date) – the date from which to compute the end of the year
offset (int, optional) – an offset from the end of the year of the date
- Returns:
The end of the year
- Return type:
datetime.date