event_span
Calculate the elapsed time or age between two events, such as age at marriage or years between a census and a death, to avoid manual date arithmetic errors.
Instructions
Measure the elapsed time between two events.
The arithmetic behind most plausibility checks: age at marriage, years between a census and a death, how long a widow waited. Doing this by hand from two formatted date strings is where transcription errors hide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_age | No | Phrase the result as an age rather than an interval. | |
| event1 | Yes | Handle or gramps_id of the first event. | |
| event2 | Yes | Handle or gramps_id of the second event. | |
| precision | No | How many units to include (years, months, days). |