Seniority

By Raj Kumar

Seniority is a simple gem to find age in format year-month-day till today based on input Date of Birth(DOB)

Gem Version

  • Versions
    • 0.0.1.pre
    • 0.0.1
    • 0.0.2
    • 0.0.3
    • 0.0.4

Note: Expected Input(DOB) Format: yyyy-mm-dd

Available Methods:
Seniority.get_age('1989-08-30')
=> "28 year(s), 11 month(s), 2 day(s)"
Seniority.get_age_day('1989-08-30')
=> 2
Seniority.get_age_month('1989-08-30')
=> 11
Seniority.get_age_year('1989-08-30')
=> 28

Getting Started:
gem install seniority
Seniority.get_age('1989-08-30')

License: MIT License