Skip to content

Instantly share code, notes, and snippets.

@staticor
Created August 18, 2013 14:21
Show Gist options
  • Save staticor/6261894 to your computer and use it in GitHub Desktop.
Save staticor/6261894 to your computer and use it in GitHub Desktop.
ruby_ count down special days __ to come
#!/usr/bin/ruby
# Calculate the countdown for the special day.
require 'Date'
days = (DateTime.new(2013,10,20) - DateTime.now).ceil
puts "Maybe #{days} days left."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment