A simple yet powerful Python utility that calculates your exact age in years, months, and days based on your birthdate.
- ๐ Calculates precise age in years, months, and days
- ๐๏ธ Handles leap years and different month lengths
- ๐ Automatically compares with the current date
- ๐ฅ๏ธ Clean and user-friendly interface
- Python 3.x
datetimemodule (standard library)
Run the script using Python:
python age_calculator.pyFollow the prompts to enter your birth year, month, and day.
Enter your birth year: 1995
Enter your birth month: 5
Enter your birth day: 15
Your age is:
29 years, 9 months, and 12 days
The script:
- Collects the user's birth date information
- Gets the current date using Python's
datetimemodule - Performs date calculations with appropriate adjustments for month lengths
- Displays the precise age in years, months, and days
- The script handles date adjustments for accurate calculations
- Works with any valid date input
- Accounts for leap years when calculating February days
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.