The root node
Reads a Gedcom file and returns it as a tree representation.
The content of the file
Optional parameters
Converts a parsed Gedcom date to its corresponding JS date (expressed in the Gregorian calendar).
The supported calendars are: Gregorian, Julian and French Republican.
The Hebrew calendar is not yet supported. Unknown calendars are inherently unsupported.
Dual dates will not be converted. BCE dates will be converted assuming the existence of year 0.
In any of these cases the returned value will be null
.
The argument is assumed to be correct, that is of correct format and valid date.
This is already guaranteed by parseDate.
The parsed date to convert
Converts a parsed Gedcom date and optional time into the corresponding JS datetime.
The parsed date
And optional parsed time
Parses an age value.
The value to parse
Parses a Gedcom date. These dates can take many different forms, see ValueDate.
The dates are checked for validity with respect to their calendar, except for the Hebrew calendar which will assume all dates to be valid due to a missing implementation.
Any unsuccessful parsing or invalid date(s) will result in null
.
The value to parse
Parses a date of format day-month-year.
The value to parse
Parses a time of format hours-minutes, optionally containing seconds and even centiseconds information.
The value to parse
Parses a name value into three potentially undefined name parts.
The value to parse
Parses a place value into parts. It essentially performs a split on the comma character.
The value to parse
Parses a version value into version number parts.
The value to parse
Generated using TypeDoc
Computes an index for each node in the tree. This operation is idempotent: applying several times will not have further effects (but will cost resources as the whole tree will be traversed anyway).