public enum HistoricEra extends Enum<HistoricEra> implements CalendarEra
Represents a historic era dividing the local timeline at roughly the point of Jesu birth in the context of the julian/gregorian calendar.
Important limitation in historic context: The early midage often used different eras for reckoning the years (not completely handled by Time4J). See also the webpage General Chronology.
| Enum Constant and Description |
|---|
AB_URBE_CONDITA
Diese mit
AD überlappende Alternative wurde von Chronisten verwendet,
um die Jahre seit der angenommenen Gründung der Stadt Rom zu zählen
(753 BC - version of Varro). |
AD
AD = Anno Domini
Years related to this era must not be smaller than
1. |
BC
BC = Before Christian
Years related to this era are counted backwards and must not be smaller than
1. |
BYZANTINE
Years are reckoned since the assumed year of creation of the world (Anno Mundi) in 5508 BC.
|
HISPANIC
Years are reckoned from 38 BC onwards (Era of Caesars or Spanish Era).
|
| Modifier and Type | Method and Description |
|---|---|
int |
annoDomini(int yearOfEra)
Scales given year of era to its mathematical AD value.
|
String |
getAlternativeName(Locale locale,
TextWidth width)
Gets an alternative description text dependent on the locale and text width.
|
String |
getDisplayName(Locale locale,
TextWidth width)
Gets the description text dependent on the locale and text width.
|
int |
getValue() |
static HistoricEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HistoricEra[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final HistoricEra BC
BC = Before Christian
Years related to this era are counted backwards and must not be smaller than 1.
public static final HistoricEra AD
AD = Anno Domini
Years related to this era must not be smaller than 1.
public static final HistoricEra HISPANIC
Years are reckoned from 38 BC onwards (Era of Caesars or Spanish Era).
This overlapping alternative to AD was used in Spain (until 1383), Portugal (until 1422)
and southern part of France.
Links:
public static final HistoricEra BYZANTINE
Years are reckoned since the assumed year of creation of the world (Anno Mundi) in 5508 BC.
This overlapping alternative to AD was mainly used in Russia
before 1700 with the rule that years start on first of September.
See also: Wikipedia.
NewYearRule.BEGIN_OF_SEPTEMBERpublic static final HistoricEra AB_URBE_CONDITA
public static HistoricEra[] values()
for (HistoricEra c : HistoricEra.values()) System.out.println(c);
public static HistoricEra 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 int getValue()
getValue in interface CalendarErapublic String getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and text width.
locale - language settingwidth - text widthnull)public String getAlternativeName(Locale locale, TextWidth width)
Gets an alternative description text dependent on the locale and text width.
This method yields for English the notations of "(Before) Common Era" (BCE/CE).
locale - language settingwidth - text widthnull)public int annoDomini(int yearOfEra)
Scales given year of era to its mathematical AD value.
yearOfEra - historic year reckoned in this eraIllegalArgumentException - if given year of era is out of rangeCopyright © 2014–2017. All rights reserved.