Skip to content

Instantly share code, notes, and snippets.

@diegoeche
Created May 4, 2012 13:01
Show Gist options
  • Save diegoeche/2594685 to your computer and use it in GitHub Desktop.
Save diegoeche/2594685 to your computer and use it in GitHub Desktop.
require "time"
party_time = Time.parse("5/04/2012 6:00:00 P.M.")
loop do
seconds_left = party_time.to_i - Time.now.to_i
puts "Seconds left to party: #{seconds_left}"
sleep(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment