Skip to content

Instantly share code, notes, and snippets.

@jiangxin
jiangxin / countdown.rb
Created September 8, 2011 08:00 — forked from gotgithub/countdown.rb
Calculate the countdown for the meeting of the party.
#!/usr/bin/ruby
# Calculate the countdown for the meeting of the party.
require 'Date'
if days >= 0
puts "Maybe #{days} days left."
else
puts "Passed for #{days.abs} days."
end