Class: OneTimeEntry

OneTimeEntry()

Entry for something that happens exactly once, on a known calendar day. Unlike ExactDateWithYearEntry it has no annual anniversary: a total solar eclipse or a comet perihelion simply happens and is then over. Example: `Total Solar Eclipse (Iceland/Spain),2026-08-12` Dates are calendar days, not instants. Astronomical rows store the UTC day.

Constructor

new OneTimeEntry()

Source:

Classes

OneTimeEntry

Members

date

The event's calendar day, at local midnight.
Source:

Methods

getNextOccurrence(_fromDate)

Returns the event date. A one-time event has no future occurrence once it has passed, so the returned date may be in the past; callers filtering on `date >= fromDate` (as the query helpers do) drop it naturally.
Parameters:
Name Type Description
_fromDate Unused; present to satisfy the Entry contract
Source:
Returns:
The event date

hasOccurred(fromDate)

Whether this event is already in the past.
Parameters:
Name Type Description
fromDate The date to compare against (default: today)
Source:
Returns:
true if the event day is before `fromDate`