The Julian calendar system has two eras. The current era, for years from 1 onwards, is known as 'Anno Domini'. All previous years, zero or earlier in the proleptic count or one and greater in the year-of-era count, are part of the 'Before Christ' era.
The start of the Julian epoch 0001-01-01 (Julian) is 0000-12-30 (ISO).
Do not use ordinal() to obtain the numeric representation of JulianEra.
Use getValue() instead.
| Modifier and Type | Field and Description |
|---|---|
| public static final JulianEra | AD
The singleton instance for the current era, 'Anno Domini', which has the numeric value 1. |
| public static final JulianEra | BC
The singleton instance for the era before the current one, 'Before Christ', which has the numeric value 0. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the era value, from 0 (BC) to 1 (AD)Implements java. Gets the numeric era |
| public static JulianEra | Returns: the era singleton, not nullthe BC/AD value to represent, from 0 (BC) to 1 (AD) era)Obtains an instance of |
| public static JulianEra | |
| public static JulianEra[] |
| AD | back to summary |
|---|---|
| public static final JulianEra AD The singleton instance for the current era, 'Anno Domini', which has the numeric value 1. | |
| BC | back to summary |
|---|---|
| public static final JulianEra BC The singleton instance for the era before the current one, 'Before Christ', which has the numeric value 0. | |
| JulianEra | back to summary |
|---|---|
| private JulianEra() | |
| getValue | back to summary |
|---|---|
| public int getValue() Implements java. Gets the numeric era The era BC has the value 0, while the era AD has the value 1.
| |
| of | back to summary |
|---|---|
| public static JulianEra of(int era) Obtains an instance of
| |
| valueOf | back to summary |
|---|---|
| public static JulianEra valueOf(String name) | |
| values | back to summary |
|---|---|
| public static JulianEra[] values() | |