[bin] add helper for getting Sneath's age

pull/37/head
Alpha Chen 3 years ago
parent 5751480d1b
commit 9d7c8f26e4

@ -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
Loading…
Cancel
Save