Skip to main content
Version: Next

Interface: YearData

Interface for all information about a year

Extends​

  • IDataItemBase

Properties​

abbreviation?​

optional abbreviation: string

The abbreviated name of the data item.

Inherited from​

IDataItemBase.abbreviation


description?​

optional description: string

The optional description of the data item

Inherited from​

IDataItemBase.description


firstWeekday​

firstWeekday: number

The day of the week the first day of the first month of year zero starts on.


id​

id: string

The unique ID of the data item

Inherited from​

IDataItemBase.id


name?​

optional name: string

The optional name of the data item

Inherited from​

IDataItemBase.name


numericRepresentation​

numericRepresentation: number

The number representing the year.

Overrides​

IDataItemBase.numericRepresentation


postfix​

postfix: string

A string to append to the end of a year's number.


prefix​

prefix: string

A string to append to the beginning of a year's number.


showAdvanced?​

optional showAdvanced: boolean

If to show the advanced options, this is not saved

Inherited from​

IDataItemBase.showAdvanced


showWeekdayHeadings​

showWeekdayHeadings: boolean

If to show weekday headings on the calendar.


yearNames​

yearNames: string[]

A list of names to use for years.


yearNamesStart​

yearNamesStart: number

The year to start applying the year names.


yearNamingRule​

yearNamingRule: YearNamingRules

How to calculate what year name to give to a year.


yearZero​

yearZero: number

What is considered to be the first year when calculating timestamps.