doubledate.soy#
- doubledate.soy(date: date, offset: int = 0) date #
Returns the start of the year, i.e. the 1st January of the current date, then optionally offset by
offset
years.- Parameters:
date (datetime.date) – the date from which to compute the start of the year
offset (int, optional) – an offset from the start of the year of the date
- Returns:
The start of the year
- Return type:
datetime.date