method
beginning_of_year
v4.1.8 -
Show latest stable
- Class:
DateAndTime::Calculations
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.