Class FrenchCalendar

All Implemented Interfaces:
Serializable

public class FrenchCalendar extends ModifiedFrenchCalendar
Implementation of the French Republican Calendar (astronomical version). This version uses precise astronomical calculations for the autumnal equinox to determine the new year, as specified in the original decree.

Key features:

  • Epoch: September 22, 1792 (Autumnal Equinox)
  • New year begins on the autumnal equinox at Paris meridian
  • 12 months of 30 days + 5-6 complementary days
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

    • TIMEZONE

      protected static final double TIMEZONE
      Time zone offset for Paris meridian in minutes.
      See Also:
    • TROPYEAR

      protected static final double TROPYEAR
      Length of the tropical year in days.
      See Also:
  • Constructor Details

    • FrenchCalendar

      public FrenchCalendar()
      Creates a new FrenchCalendar object.
    • FrenchCalendar

      public FrenchCalendar(long l)
      Creates a new FrenchCalendar object.
      Parameters:
      l - the Rata Die number.
    • FrenchCalendar

      public FrenchCalendar(int i, int j, int k)
      Creates a new FrenchCalendar object.
      Parameters:
      i - the month (1-13).
      j - the day (1-30).
      k - the year.
    • FrenchCalendar

      public FrenchCalendar(AlternateCalendar altcalendar)
      Creates a new FrenchCalendar object.
      Parameters:
      altcalendar - another calendar to initialize from.
  • Method Details

    • recomputeRD

      public void recomputeRD()
      Recomputes the Rata Die number from the current month, day, and year.
      Overrides:
      recomputeRD in class ModifiedFrenchCalendar
    • recomputeFromRD

      public void recomputeFromRD()
      Recomputes the month, day, and year from the current Rata Die number.
      Overrides:
      recomputeFromRD in class ModifiedFrenchCalendar
    • main

      public static void main(String[] args)
      Main method for testing the French calendar implementation.
      Parameters:
      args - command line arguments.