GH avatar Bite 198. Calculate my Mac's longest uptime

Given the following output, calculate the longest uptime / time between reboots:

[[email protected] log]$ last reboot
reboot    ~                         Wed Apr 10 22:39
reboot    ~                         Wed Mar 27 16:24
reboot    ~                         Wed Mar 27 15:01
reboot    ~                         Sun Mar  3 14:51
reboot    ~                         Sun Feb 17 11:36
reboot    ~                         Thu Jan 17 21:54
reboot    ~                         Mon Jan 14 09:25

The tests will check your code against different last reboot outputs. You can assume all dates are within the same year.

Have fun and code in Python!

14 out of 14 users completed this Bite.
Will you be Pythonista #15 to crack this Bite?
It takes an average of ~58 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 2.0 on a 1-10 difficulty scale.
» You can do it! 😌

Login and get coding
We use Python 3.7