Replaced my dumb way of calculating seconds to midnight with Tim Peters' much more...