EU Parliament Monitor — API Documentation - v0.8.53
    Preparing search index...

    Function getElectionCalendarContext

    • Compute the election calendar context for the EP10 → EP11 transition. Returns deterministic output for any reference date (defaults to new Date()).

      Tier mapping (per analysis/methodologies/electoral-cycle-methodology.md):

      • daysToElection > 180NONE
      • 180 ≥ d > 90T-180
      • 90 ≥ d > 30T-90
      • 30 ≥ dT-30

      Parameters

      • OptionalreferenceDate: Date

        Date to compute from (default: now)

      Returns ElectionCalendarContext

      Election calendar context with term, window, days, and tier