rails/rails — pull request #7961 by exviva (2012-10-16 10:16:34+00:00)
Title: Add #seconds_until_end_of_day to DateTime and Time

Add `DateTime#seconds_until_end_of_day` and `Time#seconds_until_end_of_day`
as a complement for `seconds_from_midnight`; useful when setting expiration
times for caches, e.g.:

```erb
<% cache('dashboard', expires_in: Date.current.seconds_until_end_of_day) do %>
...
```