You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
180 B

#!/usr/bin/env ruby
require "date"
birthday = Date.new(2021, 8, 14)
days = (Date.today - birthday).to_i
puts <<~EOF
#{days.to_i} days (#{days / 7} weeks, #{days % 7} days)
EOF