Age in years, months, and days
age_durationAge from start to end as calendar years, months, and days. Use when the user asks for an age or the length of time between two dates in years, months, and days. end defaults to today (UTC). A birthday on 29 February does not become a whole year on 28 February of a common year: 2020-02-29 to 2021-02-28 is 0 years, 11 months, and 30 days. 2020-02-29 to 2024-02-29 is 4 years. The parts are negative when end is before start. total_days is the signed number of calendar days from start to end. The result is years, months, days, and total_days. The dates are not repeated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date, YYYY-MM-DD. Defaults to today (UTC). | |
| start | Yes | Start date, such as a birthdate, YYYY-MM-DD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| error | No | ||
| years | Yes | ||
| months | Yes | ||
| candidates | No | ||
| total_days | Yes | ||
| alternatives | No | Other cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population. |