method

beginning_of_year

beginning_of_year()
public

Return a new date/time at the beginning of the year. Example: 1st January. DateTime objects will have a time set to 0:00.