public enum FrenchRepublicanAlgorithm extends Enum<FrenchRepublicanAlgorithm>
| Enum Constant and Description |
|---|
EQUINOX
The standard legal algorithm of the French revolutionary calendar strictly based on autumnal equinox.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static AttributeKey<FrenchRepublicanAlgorithm> |
attribute()
Format attribute which helps to resolve algorithmic differences between various French republican dates.
|
boolean |
isLeapYear(int fyear)
Determines if given republican year is a leap year or not.
|
static FrenchRepublicanAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FrenchRepublicanAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrenchRepublicanAlgorithm EQUINOX
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.
public static FrenchRepublicanAlgorithm[] values()
for (FrenchRepublicanAlgorithm c : FrenchRepublicanAlgorithm.values()) System.out.println(c);
public static FrenchRepublicanAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AttributeKey<FrenchRepublicanAlgorithm> attribute()
Format attribute which helps to resolve algorithmic differences between various French republican dates.
Standard value is: EQUINOX.
public boolean isLeapYear(int fyear)
Determines if given republican year is a leap year or not.
fyear - the year of French Republic in the French revolutionary calendartrue for leap years else falseCopyright © 2014–2021. All rights reserved.