Class: ExactDateWithYearEntry

ExactDateWithYearEntry()

Entry with a specific year, month, and day (one-time event). Example: "Afghanistan,08/19,1919"

Constructor

new ExactDateWithYearEntry()

Source:

Classes

ExactDateWithYearEntry

Methods

getAnniversary(year)

Gets the anniversary of this event on a specific year.
Parameters:
Name Type Description
year The year to calculate the anniversary for
Source:
Returns:
The anniversary date

getYearsSince(date)

Gets the number of years since this event for a given date.
Parameters:
Name Type Description
date The date to calculate from (default: today)
Source:
Returns:
The number of years