Re: Uptime Since... (#174)


On Sat, Aug 23, 2008 at 9:35 AM, Matthew M. removed_email_address@domain.invalid

The three rules of Ruby Q. 2:

  1. Please do not post any solutions or spoiler discussion for this
    quiz until 48 hours have passed from the time on this message.

  2. Support Ruby Q. 2 by submitting ideas as often as you can! (A
    permanent, new website is in the works for Ruby Q. 2. Until then,
    please visit the temporary website at

  3. Enjoy!

Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby T. follow the discussion. Please reply to
the original quiz message, if you can.


Uptime Sinceā€¦ (#174)

Nice and easy one this week. Your task is to write a Ruby script that
reports the date and time of your last reboot, making use of the
uptime command.

While uptime is available on the various Unixes and Mac OS X,
Windows users might need to do a little extra work. Here are two
options for Windows users.