This chronology defines the rules of the International Fixed calendar system.
It shares the leap year rule with the Gregorian calendar.
Dates are aligned such that 0001-01-01 (International Fixed) is 0001-01-01 (ISO).
This class is proleptic. It implements only years greater or equal to 1.
This class implements a calendar where January 1st is the start of the year.
The fields are defined as follows:
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ValueRange | DAY_OF_MONTH_RANGE
Range of day of month. |
| pack-priv static final ValueRange | DAY_OF_YEAR_LEAP_RANGE
Range of day of leap year. |
| pack-priv static final ValueRange | DAY_OF_YEAR_NORMAL_RANGE
Range of day of year. |
| pack-priv static final long | DAYS_0000_TO_1970
The number of days from year zero to year 1970, still the era only allows year 1 and higher. |
| pack-priv static final int | DAYS_IN_LONG_MONTH
There are 29 days in a long month. |
| pack-priv static final int | DAYS_IN_MONTH
There are 4 weeks of 7 days, or 28 total days in a month. |
| pack-priv static final int | DAYS_IN_WEEK
Standard 7-day week. |
| pack-priv static final int | DAYS_IN_YEAR
There are 13 months of 28 days, or 365 days in a (non-leap) year. |
| pack-priv static final int | DAYS_PER_CYCLE
The number of days in a 400 year cycle. |
| pack-priv static final ValueRange | EMPTY_RANGE
Empty range: [0, 0]. |
| pack-priv static final ValueRange | EPOCH_DAY_RANGE
Epoch day range. |
| pack-priv static final ValueRange | ERA_RANGE
Range of eras. |
| public static final InternationalFixedChronology | INSTANCE
Singleton instance for the International fixed chronology. |
| pack-priv static final ValueRange | MONTH_OF_YEAR_RANGE
Range of month of year. |
| pack-priv static final int | MONTHS_IN_YEAR
There are 13 months in a year. |
| private static final ValueRange | PROLEPTIC_MONTH_RANGE
Range of proleptic month. |
| private static final long | serialVersionUID
Serialization version UID. |
| pack-priv static final int | WEEKS_IN_MONTH
In all months, there are 4 complete weeks. |
| pack-priv static final int | WEEKS_IN_YEAR
There are 52 weeks in a year. |
| pack-priv static final ValueRange | YEAR_RANGE
Range of year. |
| Access | Constructor and Description |
|---|---|
| public | InternationalFixedChronology()
Deprecated
Use the singleton
INSTANCE instead.
Private constructor, that is public to satisfy the |
| Modifier and Type | Method and Description |
|---|---|
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe International Fixed era, not null era, int the year-of-era yearOfEra, int the month-of-year month, int the day-of-month dayOfMonth)Overrides default java. Obtains a local date in International Fixed calendar system from the era, year-of-era, month-of-year and day-of-month fields. |
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe proleptic-year prolepticYear, int the month-of-year month, int the day-of-month dayOfMonth)Implements java. Obtains a local date in International Fixed calendar system from the proleptic-year, month-of-year and day-of-month fields. |
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe date-time object to convert, not null temporal)Implements java. Obtains a International Fixed local date from another date-time object. |
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe epoch day epochDay)Implements java. Obtains a local date in the International Fixed calendar system from the epoch-day. |
| public InternationalFixedDate | Returns: the current International Fixed local date using the system clock and default time-zone, not nullOverrides default java. Obtains the current International Fixed local date from the system clock in the default time-zone. |
| public InternationalFixedDate | Returns: the current International Fixed local date using the system clock, not nullthe zone ID to use, not null zone)Overrides default java. Obtains the current International Fixed local date from the system clock in the specified time-zone. |
| public InternationalFixedDate | Returns: the current International Fixed local date, not nullthe clock to use, not null clock)Overrides default java. Obtains the current International Fixed local date from the specified clock. |
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe International Fixed era, not null era, int the year-of-era yearOfEra, int the day-of-year dayOfYear)Overrides default java. Obtains a local date in International Fixed calendar system from the era, year-of-era and day-of-year fields. |
| public InternationalFixedDate | Returns: the International Fixed local date, not nullthe proleptic-year prolepticYear, int the day-of-year dayOfYear)Implements java. Obtains a local date in International Fixed calendar system from the proleptic-year and day-of-year fields. |
| public InternationalFixedEra | Returns: the calendar system era, not nullthe era value eraValue)Implements java. Creates the chronology era object from the numeric value. |
| public List | Returns: the list of eras for the chronology, may be immutable, not nullImplements java. Gets the list of eras for the chronology. |
| public String | Returns: the calendar system type, nullImplements java. Gets the calendar type of the underlying calendar system, which returns null. |
| public String | Returns: the chronology ID - 'Ifc'Implements java. Gets the ID of the chronology - 'Ifc'. |
| pack-priv static long | Returns: The number of leap years since International fixed year 1.The year. prolepticYear)Get the count of leap years since International fixed year 1. |
| public boolean | Returns: true if the year is a leap yearthe proleptic-year to check, not validated for range year)Implements java. Checks if the specified year is a leap year. |
| public ChronoLocalDateTime | Returns: the International Fixed local date-time, not nullthe date-time object to convert, not null temporal)Overrides default java. Obtains a International Fixed local date-time from another date-time object. |
| public int | prolepticYear(Era
the era of the correct type for the chronology, not null era, int the chronology year-of-era yearOfEra)Implements java. Calculates the proleptic-year given the era and year-of-era. |
| public ValueRange | range(ChronoField
the field to get the range for, not null field)Implements java. Gets the range of valid values for the specified field. |
| private Object | |
| public ChronoZonedDateTime | Returns: the International Fixed zoned date-time, not nullthe date-time object to convert, not null temporal)Overrides default java. Obtains a International Fixed zoned date-time from another date-time object. |
| public ChronoZonedDateTime | Returns: the International Fixed zoned date-time, not nullthe instant to create the date-time from, not null instant, ZoneId the time-zone, not null zone)Overrides default java. Obtains a International Fixed zoned date-time in this chronology from an |
| DAY_OF_MONTH_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange DAY_OF_MONTH_RANGE Range of day of month. | |
| DAY_OF_YEAR_LEAP_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange DAY_OF_YEAR_LEAP_RANGE Range of day of leap year. | |
| DAY_OF_YEAR_NORMAL_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange DAY_OF_YEAR_NORMAL_RANGE Range of day of year. | |
| DAYS_0000_TO_1970 | back to summary |
|---|---|
| pack-priv static final long DAYS_0000_TO_1970 The number of days from year zero to year 1970, still the era only allows year 1 and higher. There are five 400 year cycles from year zero to 2000. There are 7 leap years from 1970 to 2000. | |
| DAYS_IN_LONG_MONTH | back to summary |
|---|---|
| pack-priv static final int DAYS_IN_LONG_MONTH There are 29 days in a long month. | |
| DAYS_IN_MONTH | back to summary |
|---|---|
| pack-priv static final int DAYS_IN_MONTH There are 4 weeks of 7 days, or 28 total days in a month. | |
| DAYS_IN_WEEK | back to summary |
|---|---|
| pack-priv static final int DAYS_IN_WEEK Standard 7-day week. | |
| DAYS_IN_YEAR | back to summary |
|---|---|
| pack-priv static final int DAYS_IN_YEAR There are 13 months of 28 days, or 365 days in a (non-leap) year. | |
| DAYS_PER_CYCLE | back to summary |
|---|---|
| pack-priv static final int DAYS_PER_CYCLE The number of days in a 400 year cycle. | |
| EMPTY_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange EMPTY_RANGE Empty range: [0, 0]. | |
| EPOCH_DAY_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange EPOCH_DAY_RANGE Epoch day range. | |
| ERA_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange ERA_RANGE Range of eras. | |
| INSTANCE | back to summary |
|---|---|
| public static final InternationalFixedChronology INSTANCE Singleton instance for the International fixed chronology. | |
| MONTH_OF_YEAR_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange MONTH_OF_YEAR_RANGE Range of month of year. | |
| MONTHS_IN_YEAR | back to summary |
|---|---|
| pack-priv static final int MONTHS_IN_YEAR There are 13 months in a year. | |
| PROLEPTIC_MONTH_RANGE | back to summary |
|---|---|
| private static final ValueRange PROLEPTIC_MONTH_RANGE Range of proleptic month. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serialization version UID. | |
| WEEKS_IN_MONTH | back to summary |
|---|---|
| pack-priv static final int WEEKS_IN_MONTH In all months, there are 4 complete weeks. | |
| WEEKS_IN_YEAR | back to summary |
|---|---|
| pack-priv static final int WEEKS_IN_YEAR There are 52 weeks in a year. | |
| YEAR_RANGE | back to summary |
|---|---|
| pack-priv static final ValueRange YEAR_RANGE Range of year. | |
| InternationalFixedChronology | back to summary |
|---|---|
| public InternationalFixedChronology()
Deprecated Use the singleton Private constructor, that is public to satisfy the
| |
| date | back to summary |
|---|---|
| public InternationalFixedDate date(Era era, int yearOfEra, int month, int dayOfMonth) Overrides default java. Obtains a local date in International Fixed calendar system from the era, year-of-era, month-of-year and day-of-month fields.
| |
| date | back to summary |
|---|---|
| public InternationalFixedDate date(int prolepticYear, int month, int dayOfMonth) Implements java. Obtains a local date in International Fixed calendar system from the proleptic-year, month-of-year and day-of-month fields.
| |
| date | back to summary |
|---|---|
| public InternationalFixedDate date(TemporalAccessor temporal) Implements java. Obtains a International Fixed local date from another date-time object.
| |
| dateEpochDay | back to summary |
|---|---|
| public InternationalFixedDate dateEpochDay(long epochDay) Implements java. Obtains a local date in the International Fixed calendar system from the epoch-day.
| |
| dateNow | back to summary |
|---|---|
| public InternationalFixedDate dateNow() Overrides default java. Obtains the current International Fixed local date from the system clock in the default time-zone.
This will query the Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
| |
| dateNow | back to summary |
|---|---|
| public InternationalFixedDate dateNow(ZoneId zone) Overrides default java. Obtains the current International Fixed local date from the system clock in the specified time-zone.
This will query the Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.
| |
| dateNow | back to summary |
|---|---|
| public InternationalFixedDate dateNow(Clock clock) Overrides default java. Obtains the current International Fixed local date from the specified clock.
This will query the specified clock to obtain the current date - today.
Using this method allows the use of an alternate clock for testing.
The alternate clock may be introduced using
| |
| dateYearDay | back to summary |
|---|---|
| public InternationalFixedDate dateYearDay(Era era, int yearOfEra, int dayOfYear) Overrides default java. Obtains a local date in International Fixed calendar system from the era, year-of-era and day-of-year fields.
| |
| dateYearDay | back to summary |
|---|---|
| public InternationalFixedDate dateYearDay(int prolepticYear, int dayOfYear) Implements java. Obtains a local date in International Fixed calendar system from the proleptic-year and day-of-year fields.
| |
| eraOf | back to summary |
|---|---|
| public InternationalFixedEra eraOf(int eraValue) Implements java. Creates the chronology era object from the numeric value. Only one era is supported, CE, with the value 1.
| |
| eras | back to summary |
|---|---|
| public List Implements java. Gets the list of eras for the chronology. Only one era is supported, CE, with the value 1. | |
| getCalendarType | back to summary |
|---|---|
| public String getCalendarType() Implements java. Gets the calendar type of the underlying calendar system, which returns null. The Unicode Locale Data Markup Language (LDML) specification does not define an identifier for this calendar system, thus null is returned. | |
| getId | back to summary |
|---|---|
| public String getId() Implements java. Gets the ID of the chronology - 'Ifc'.
The ID uniquely identifies the
| |
| getLeapYearsBefore | back to summary |
|---|---|
| pack-priv static long getLeapYearsBefore(long prolepticYear) Get the count of leap years since International fixed year 1.
| |
| isLeapYear | back to summary |
|---|---|
| public boolean isLeapYear(long year) Implements java. Checks if the specified year is a leap year. A leap-year is a year of a longer length than normal. Leap years in the calendar system match those of the ISO calendar system.
| |
| localDateTime | back to summary |
|---|---|
| public ChronoLocalDateTime Overrides default java. Obtains a International Fixed local date-time from another date-time object.
| |
| prolepticYear | back to summary |
|---|---|
| public int prolepticYear(Era era, int yearOfEra) Implements java. Doc from java. Calculates the proleptic-year given the era and year-of-era. This combines the era and year-of-era into the single proleptic-year field.
If the chronology makes active use of eras, such as | |
| range | back to summary |
|---|---|
| public ValueRange range(ChronoField field) Implements java. Doc from java. Gets the range of valid values for the specified field.
All fields can be expressed as a Note that the result only describes the minimum and maximum valid values and it is important not to read too much into them. For example, there could be values within the range that are invalid for the field. This method will return a result whether or not the chronology supports the field.
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Resolve singleton.
| |
| zonedDateTime | back to summary |
|---|---|
| public ChronoZonedDateTime Overrides default java. Obtains a International Fixed zoned date-time from another date-time object.
| |
| zonedDateTime | back to summary |
|---|---|
| public ChronoZonedDateTime Overrides default java. Obtains a International Fixed zoned date-time in this chronology from an
| |