Korin API

DateKind : string
in package

What a {@see GedcomDate} says about its dates.

Table of Contents

Cases

About  = 'ABT'
After  = 'AFT'
Before  = 'BEF'
Between  = 'BET'
BET date AND date.
Calculated  = 'CAL'
Date  = 'DATE'
One date: "6 DEC 1907"; with a phrase, the 5.x "INT 6 DEC 1907 (text)".
Estimated  = 'EST'
From  = 'FROM'
FROM date, a period without an end.
None  = ''
No date: an empty value, or only a phrase ("(spring 1900)" in 5.x, a 7.0 PHRASE).
Period  = 'FROM TO'
FROM date TO date.
To  = 'TO'
TO date, a period without a start.

Methods

dates()  : int
How many dates the kind has: 0, 1 or 2.
isPeriod()  : bool
FROM, TO or FROM … TO: a 7.0 DatePeriod, a 5.x DATE_PERIOD.

Cases

None

No date: an empty value, or only a phrase ("(spring 1900)" in 5.x, a 7.0 PHRASE).

Date

One date: "6 DEC 1907"; with a phrase, the 5.x "INT 6 DEC 1907 (text)".

From

FROM date, a period without an end.

Methods

dates()

How many dates the kind has: 0, 1 or 2.

public dates() : int
Return values
int

isPeriod()

FROM, TO or FROM … TO: a 7.0 DatePeriod, a 5.x DATE_PERIOD.

public isPeriod() : bool
Return values
bool
On this page

Search results