getLast

fun ZonedDateTime.getLast(dayOfWeek: DayOfWeek, countingInThisDay: Boolean = false): ZonedDateTime

Works off of ZonedDateTime context.

Return

ZonedDateTime of last DayOfWeek.

Parameters

dayOfWeek

Monday, Tues, etc, which we want to find the last instance of when going back in time.

countingInThisDay

When true, & context's DayOfWeek matches param, then return context, else go back a week.