note
ikegami
Yeah, that's functionally equivalent, but I wanted to keep the two halves of the equation separate (calculating the last day of the week and calculating the number of days until the last day of the week). In mine, <c>($first_dow + 6)</c> can be replaced with <c>$last_dow</c>.
864875
864963