Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Before I start hacking on this myself... anyone have a Ruby method to produce this?
# "3 months and 14 days" until"...
# "1 year and 11 days until"...
def time_until_in_words(future_date)
future_date - Date.today
# magic!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.