From: matz@... Date: 2018-08-09T06:44:12+00:00 Subject: [ruby-core:88370] [Ruby trunk Feature#14877][Rejected] Calculate age in Date class Issue #14877 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected I don't think the calculation of age from the birthday is not a responsibility of `Date` class. There may be a chance for the method for more generic duration calculation of dates/times. Matz. ---------------------------------------- Feature #14877: Calculate age in Date class https://bugs.ruby-lang.org/issues/14877#change-73408 * Author: derosm2 (Mike DeRosa) * Status: Rejected * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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 2018, 6, 28: `Date.new(2016, 3, 6).age #=> 2` `Date.new(2016, 6, 29).age #=> 1` -- https://bugs.ruby-lang.org/ Unsubscribe: