endOfYear method

DateTime endOfYear()

Returns end of the year

Returned object will have same timezone as this

Implementation

DateTime endOfYear() => endOf(DurationUnit.year);