Difference between revisions of "Addon:DateCalculator"
m (→Usage: new copy button) |
m (→Usage: expand using new names of expression fields) |
||
| Line 18: | Line 18: | ||
Select the {{man label|Date Calculator Gramplet}} from the Gramplet menu. | Select the {{man label|Date Calculator Gramplet}} from the Gramplet menu. | ||
| − | Enter the desired | + | Enter the desired {{man label|Reference Date or Date Range}} in the first entry field and {{man label|Date or offset +/-y or +/-y, m, d}} in the second entry field and press the {{man button|Calculate}} to see the result. |
Use the {{man button|Copy}} button to copy the result. | Use the {{man button|Copy}} button to copy the result. | ||
Revision as of 22:20, 24 December 2024
This is a Third-party Addon. The Addon/Plugin system is controlled by the Plugin Manager. Please use carefully on data that is backed up, and help make it better by reporting any issues to the bug tracker. |
The Date Calculator Gramplet allows you to do date math.
Enter at least one valid date for Expression 1 and Expression 2 then click the Calculate button.
An expression can be:
- a valid Gramps date
- a positive or negative number (represents years)
- a positive or negative tuple (years, months, days) Note that only a single leading negative sign is needed to indicate a negative tuple.
Note that at least one expression must be a date.
Usage
Select the Date Calculator Gramplet from the Gramplet menu.
Enter the desired Reference Date or Date Range in the first entry field and Date or offset +/-y or +/-y, m, d in the second entry field and press the Calculate to see the result.
Use the Copy button to copy the result.
Use the Clear button to start again.
Example usage
Assume that a headstone has only a date of death and age at death.
| RANEY | ||
|---|---|---|
|
MOTHER Wife of Died & 3Ds. Blessed are the dead who die in the Lord |
Source: Iowa Gravestone Photo Project |
FATHER Died & 7Ds I will behold thy face |
Enter a date in each field in the following format ( YYYY-MM-DD ).
Expression 1
Enter a starting date or an offset value (such as the date of the most recent birthday on a marriage license):
for the wife in the example gravestone, enter 14 Nov 1902
Expression 2
an offset tuple is in the form y,m,d
Example for "Aged 73Yrs. 4Mo. & 3Ds.", use "- 73, 4, 3"
Note that only a single leading negative sign is needed to indicate a negative tuple.
Result
Pressing the Calculate button returns 1829-07-11. When storing a date that's been calculated from a reference rather than a historical record, it is hard to be certain what methodology was used. So the results are an estimate. Annotate this by preceding the value with "calc abt"
See also
- [[Gramps_Template:Version manual_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Editing_dates|Editing dates]]
- [[Gramps_Template:Version manual_Wiki_Manual_-_Reports_-_part_2#Formatting_Dates|Formatting Dates]]


