startOfYear method

DateTime startOfYear()

Returns start of the year

Returned object will have same timezone as this

Implementation

DateTime startOfYear() => startOf(DurationUnit.year);