Little script I made

I’m a Help Staff on Rizon, and as such we have the responsibility of staffing RizonBNC, which has a rule that you have to be registered 7 days (1 week) before requesting a BNC, so I made a little script to get me the difference in between them.

Here’s the STDOUT on the shell

[email protected]:~$ ./time.rb -t "Aug 04 10:27:26 2016 MDT"
{:time=>"Aug 04 10:27:26 2016 MDT"}
Try again in 6 days, 23 hours, 24 minutes and 46 seconds (7 day wait)
[email protected]:~$ ./time.rb -n Blah -t "Aug 04 10:27:26 2016 MDT"
{:nick=>"Blah", :time=>"Aug 04 10:27:26 2016 MDT"}
Blah: Try again in 6 days, 23 hours, 24 minutes and 25 seconds (7 day wait)

Here’s the code, hosted on GitHub

Bookmark the permalink.

  • If this page or post could use some sprucing up, let us know by contacting us through this link