Skip to content

periodSchema

type: object

a duration of time between a start and end date; For active periods, the end date can be omitted.

start

type: union

the start date of the period

start/0

type: object
additional validation? yes

a fully-specified date in the Gregorian calendar

year

type: yearSchema

a year in the Gregorian calendar

month

type: monthSchema

a month in the Gregorian calendar

day

type: daySchema

a day of the month in the Gregorian calendar

start/1

type: tuple

a date consisting only of a year

start/1[0]

type: yearSchema

a year in the Gregorian calendar

start/2

type: tuple

a date consisting of a year and a month

start/2[0]

type: yearSchema

a year in the Gregorian calendar

start/2[1]

type: monthSchema

a month in the Gregorian calendar

start/3

type: tuple
additional validation? yes

a date consisting of a year, a month and a day of the month

start/3[0]

type: yearSchema

a year in the Gregorian calendar

start/3[1]

type: monthSchema

a month in the Gregorian calendar

start/3[2]

type: daySchema

a day of the month in the Gregorian calendar

end

type: dateSchema
optional? yes

the end date of a period; If omitted, the period is considered active in the present.