Enum Class FrenchRepublicanAlgorithm

java.lang.Object
java.lang.Enum<FrenchRepublicanAlgorithm>
net.time4j.calendar.frenchrev.FrenchRepublicanAlgorithm
All Implemented Interfaces:
Serializable, Comparable<FrenchRepublicanAlgorithm>, java.lang.constant.Constable

public enum FrenchRepublicanAlgorithm extends Enum<FrenchRepublicanAlgorithm>
Various calendar algorithm variants for the French revolutionary calendar.
Since:
3.33/4.28
Author:
Meno Hochschild
  • Enum Constant Details

    • EQUINOX

      public static final FrenchRepublicanAlgorithm EQUINOX
      The standard legal algorithm of the French revolutionary calendar strictly based on autumnal equinox.
    • ROMME

      public static final FrenchRepublicanAlgorithm ROMME

      This algorithmic variant proposed by Charles-Gilbert Romme (leader of the calendar commission) would have treated the republican year as leap year similar to the gregorian calendar rules.

      Years divisible by four, but leaving out centuries unless divisible by 400 would have been considered as leap years, that is: 16, 20, 24, ..., 96, 104, etc. However, this proposal was never realized because Romme had soon be sent to the guillotine.

      Important: This algorithm still applies the equinox rule for all dates before 1806-01-01, the date of the abolition of the French revolutionary calendar.

  • Method Details

    • values

      public static FrenchRepublicanAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FrenchRepublicanAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • attribute

      public static AttributeKey<FrenchRepublicanAlgorithm> attribute()

      Format attribute which helps to resolve algorithmic differences between various French republican dates.

      Standard value is: EQUINOX.

      Returns:
      format attribute key
    • isLeapYear

      public boolean isLeapYear(int fyear)

      Determines if given republican year is a leap year or not.

      Parameters:
      fyear - the year of French Republic in the French revolutionary calendar
      Returns:
      true for leap years else false