diff --git a/bin/how-old-is-sneath b/bin/how-old-is-sneath new file mode 100755 index 0000000..273a587 --- /dev/null +++ b/bin/how-old-is-sneath @@ -0,0 +1,9 @@ +#!/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