# Re: Uptime Since... (#174)

**URL:** <https://www.ruby-forum.com/t/re-uptime-since-174/151039>\
**Category:** Ruby\
**Created:** [October 16, 2008, 7:39am UTC](https://www.ruby-forum.com/t/re-uptime-since-174/151039 "2008-10-16T07:39:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reuben\_doetsch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@reuben\_doetsch](https://www.ruby-forum.com/u/reuben_doetsch)\
**Post date:** [October 16, 2008, 7:39am UTC](https://www.ruby-forum.com/t/re-uptime-since-174/151039/1 "2008-10-16T07:39:15Z")

</div>

On Sat, Aug 23, 2008 at 9:35 AM, Matthew M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:  
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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](http://support.microsoft.com/kb/555737)  
[options](http://articles.techrepublic.com.com/5100-10878_11-5826014.html) for Windows users.
