in reply to epoch reduction

Hi,

Perhaps sorting the date-times in reverse order?

Then you each time the date part changes you have the latest time for that day.

J.C.