Created
August 18, 2013 14:21
-
-
Save staticor/6261894 to your computer and use it in GitHub Desktop.
ruby_ count down special days __ to come
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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