Feature #14877
Updated by derosm2 (Mike DeRosa) over 6 years ago
Seems like there's enough complexity in determining the right values and it's something a ton of apps have to address. I've seen a bunch of StackOverflow and other blog posts attempt to address this, not all of them accurately. Specifically age would calculate the number of years since a person's birthdate (or how old they are). So if today is 2016, 6, 28: `Date.new(2016, 3, 6).age #=> 2` `Date.new(2016, 6, 29).age #=> 1`