NAME
date-age - Calculate age from dates using Date::Age module
SYNOPSIS
date-age [options] <date_of_birth> [reference_date]
Options:
-h, --help Show this help message
-v, --verbose Show detailed age information
-j, --json Output results in JSON format
Examples:
date-age 1990-05-15 # Age from birth to today
date-age 1990-05-15 2020-01-01 # Age from birth to specific date
date-age 1990 2020-01-01 # Age range for partial birth year
date-age --verbose 1990-05 2020-01-01 # Detailed output
date-age --json 1990 2020-01-01 # JSON output
DESCRIPTION
This program calculates age or age ranges between two dates using the Date::Age module. It supports partial dates (year only, or year-month) and will calculate possible age ranges when exact dates aren't available.
The first argument is the date of birth, and the optional second argument is the reference date. If no reference date is provided, the current date is used.
Date formats supported: YYYY-MM-DD (full date) YYYY-MM (year and month) YYYY (year only)
OPTIONS
- -h, --help
-
Show help message and exit.
- -v, --verbose
-
Show detailed age information including minimum age, maximum age, and whether the age can be precisely determined.
- -j, --json
-
Output the results in JSON format. Requires the JSON module to be installed.
EXIT STATUS
Returns 0 on success, non-zero on error.
AUTHOR
Generated CLI for Date::Age module
SEE ALSO
Date::Age