endOfLastYear method

DateTime endOfLastYear()

Returns a new DateTime of same timezone

Implementation

DateTime endOfLastYear() =>
    DateTimeConstructors.withTimezone(isUtc, year - 1).endOfYear();