Support 24:00:00.000 to mean next day, at midnight.

As requested in #1174