まとめてみた。

while read dt tm user; do
echo $dt $tm $user `date +%s -d "$dt $tm"` $user
done |sort -k 3 -r |uniq -4 |cut -d" " -f 1-3