Calcul de l'âge

Ruby code posted by kikan
created at 05 Jan 11:25

Edit | Back
1
2
3
4
5
class Date
  def age
    ((Date.today-self)/365.25).floor
  end
end
71 Bytes in 3 ms with coderay