public final class JulianChronology extends Chronology implements Serializable
JulianChronology defines the rules of the Julian calendar system. The Julian calendar was introduced by Julius Caesar in 46 BCE to replace the previous Roman calendar system.
The calendar system is the same as the ISOChronology ISO-8601
calendar
system with the exception of the rule for the leap year. The Julian definition
has a leap year every four years without fail.
JulianChronology is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
static JulianChronology |
INSTANCE
The singleton instance of
JulianChronology . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the chronology.
|
static boolean |
isLeapYear(int year)
Checks if the specified year is a leap year.
|
static PeriodUnit |
periodDays()
Gets the period unit for days.
|
static PeriodUnit |
periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
periodYears()
Gets the period unit for years.
|
get, rule, toString
public static final JulianChronology INSTANCE
JulianChronology
.public static boolean isLeapYear(int year)
The Julian calendar system defines a leap year as being divisible by four without remainder. The calculation is proleptic - applying the same rules into the far future and far past.
year
- the year to check, not validated for rangepublic String getName()
getName
in class Chronology
public static PeriodUnit periodYears()
The period unit defines the concept of a period of a year in the Julian calendar system. This has an estimated duration equal to 365.25 days.
See #yearRule()
for the main date-time field.
public static PeriodUnit periodMonths()
The period unit defines the concept of a period of a month in the Julian calendar system. This has an estimated duration equal to one-twelfth of 365.25 days.
See #monthOfYearRule()
for the main date-time field.
public static PeriodUnit periodWeeks()
The period unit defines the concept of a period of a week. This is equivalent to the ISO weeks period unit.
public static PeriodUnit periodDays()
The period unit defines the concept of a period of a day. This is equivalent to the ISO days period unit.
See #dayOfMonthRule()
for the main date-time field.
Copyright © 2014. All rights reserved.