From: Michael Guterl Date: 2008-08-29T00:26:37+09:00 Subject: Re: Uptime Since... (#174) On Thu, Aug 28, 2008 at 11:01 AM, Matthew Moss wrote: >> This works for me on OS X. >> >> require 'time' >> Time.parse `last | tail -1` > > That doesn't come close to working for me on OSX. There are many more > timestamps in that file than just the reboots. The version Erik > provided works correctly. > FWIW, `last | grep reboot` returns nothing for me on my MacBook.