Class EthiopicCalendar

All Implemented Interfaces:
Serializable

public class EthiopicCalendar extends CopticCalendar
Implementation of the Ethiopian calendar. The Ethiopian calendar is based on the Coptic calendar and is the official calendar of Ethiopia. It has 13 months - 12 of 30 days and one of 5-6 days.

Key features:

  • Epoch: August 29, 8 CE (Julian)
  • 13 months: 12 months of 30 days + Paguemen (5 or 6 days)
  • 7-8 years behind the Gregorian calendar
* @version 2.0
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

    • EPOCH

      public static long EPOCH
      The RD number of the Ethiopian epoch (August 29, 8 CE Julian).
  • Constructor Details

    • EthiopicCalendar

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

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

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

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

    • recomputeRD

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

      protected void recomputeFromRD()
      Recomputes the month, day, and year from the current Rata Die number.
      Overrides:
      recomputeFromRD in class CopticCalendar
    • monthName

      protected String monthName()
      Returns the name of the current month.
      Overrides:
      monthName in class CopticCalendar
      Returns:
      the month name string.
    • getMonths

      public Enumeration<String> getMonths()
      Returns an enumeration of all Ethiopian month names.
      Overrides:
      getMonths in class CopticCalendar
      Returns:
      enumeration of month names.
    • main

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