Sha256: f226f59a2200ad501ce2d542f603645435fca7eddca2c8cfe74b156b8dd9f673

Contents?: true

Size: 126 Bytes

Versions: 25

Compression:

Stored size: 126 Bytes

Contents

# section_11/part_2/answer.rb
# 11-2-require-date.rb
require 'date'

days = Date.today - Date.new(1993, 2, 24)
puts days.to_i

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.8 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.15 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.14 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.13 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.11 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.10 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.9 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.8 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.7 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.6 questions/sequential_check/section_11/part_2/lib/answer.rb
ruby_learner-1.1.5 questions/sequential_check/section_11/part_2/lib/answer.rb