From: Michael Guterl Date: 2008-08-29T00:28:21+09:00 Subject: Re: Uptime Since... (#174) On Thu, Aug 28, 2008 at 11:31 AM, Michael Guterl wrote: > 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. > Doh, clicked send too quickly. Also, you're right, my version doesn't seem to be working right either...