Skip to content

Instantly share code, notes, and snippets.

View gotgithub's full-sized avatar

GotGitHub gotgithub

View GitHub Profile
@gotgithub
gotgithub / countdown.rb
Created September 8, 2011 07:46
Calculate the countdown for the meeting of the party.
#!/usr/bin/ruby
# Calculate the countdown for the meeting of the party.
require 'Date'
days=(DateTime.new(2012,10,15)-DateTime.now).ceil
if days >= 0
puts "Maybe #{days} days left."
else
puts "Passed for #{days.abs} days."