Skip to content

Instantly share code, notes, and snippets.

@bertrand-lupart
Created November 8, 2018 16:38
Show Gist options
  • Save bertrand-lupart/2558be58de887467edbe8510d72f369c to your computer and use it in GitHub Desktop.
Save bertrand-lupart/2558be58de887467edbe8510d72f369c to your computer and use it in GitHub Desktop.
How many days since…
(Calendar.dwim_day("2001-02-12")->distance(Calendar.now())->how_many(Calendar.Day));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment