avatar Bite 198. Calculate my Mac's longest uptime

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

[bbelderbos@imac 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!

Login and get coding
go back Advanced level
Bitecoin 4X

Will you be the 120th person to crack this Bite?
Resolution time: ~52 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.75 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help