Addon:DateCalculator

From Gramps
Jump to: navigation, search
Gramps-notes.png

Please use carefully on data that is backed up, and help make it better by reporting any comments or problems to the author, or issues to the bug tracker
Unless otherwise stated on this page, you can download this addon by following these instructions.
Please note that some Addons have prerequisites that need to be installed before they can be used.
This Addon/Plugin system is controlled by the Plugin Manager.
An Addons Offline Manual is available for review.


Date Calculator Gramplet - Default opening dialog

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:

  1. a valid Gramps date
  2. a positive or negative number (represents years)
  3. 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 expressions and press the Calculate to see the result.

Use the Clear button to start again.

Example usage

Date Calculator Gramplet - Example results

Assume that a headstone has only a date of death and age at death.

RANEY

MOTHER
Hannah M.

Wife of
William Raney

Died
Nov. 14, 1902
Aged

73Yrs. 4Mo.
& 3Ds.
Blessed are the dead
who die in the Lord
C051 raney w id794872.jpg

Source:
Iowa Gravestone
Photo Project

FATHER
William Raney

Died
Oct. 17, 1892
Aged

71 Yrs 2Mo
& 7Ds

I will behold thy face
in righteousness I shall
be satisfied when
I awake with thy likeness

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"

Gramps-notes.png
Initially, the Result field will contain the following usage hint:

Enter an expression in the entries above and click Calculate.

An expression can be:

1. a valid Gramps date
2. a positive or negative number, representing years
3. a positive or negative tuple, representing (years, months, days)

Note that at least one expression must be a date.


See also