Java Code Examples for java.time.chrono.IsoEra#BCE
The following examples show how to use
java.time.chrono.IsoEra#BCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TCKEraSerialization.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 2
Source File: TCKIsoEra.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 3
Source File: TCKIsoEra.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 4
Source File: TCKIsoEra.java From hottub with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 5
Source File: TCKEraSerialization.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 6
Source File: TCKIsoEra.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 7
Source File: TCKEraSerialization.java From j2objc with Apache License 2.0 | 5 votes |
@DataProvider public static Object[][] data_of_calendars() { return new Era[][] { /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported. {HijrahEra.AH}, */ {IsoEra.BCE}, {IsoEra.CE}, /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported. {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, */ }; }
Example 8
Source File: TCKEraSerialization.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 9
Source File: TCKIsoEra.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 10
Source File: TCKIsoEra.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 11
Source File: TCKEraSerialization.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 12
Source File: TCKIsoEra.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 13
Source File: TCKEraSerialization.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 14
Source File: TCKIsoEra.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 15
Source File: TCKIsoEra.java From j2objc with Apache License 2.0 | 5 votes |
@DataProvider public static Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 16
Source File: TCKIsoEra.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 17
Source File: TCKEraSerialization.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 18
Source File: TCKIsoEra.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "IsoEras") Object[][] data_of_eras() { return new Object[][] { {IsoEra.BCE, "BCE", 0}, {IsoEra.CE, "CE", 1}, }; }
Example 19
Source File: TCKEraSerialization.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example 20
Source File: LocalDate.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Gets the era applicable at this date. * <p> * The official ISO-8601 standard does not define eras, however {@code IsoChronology} does. * It defines two eras, 'CE' from year one onwards and 'BCE' from year zero backwards. * Since dates before the Julian-Gregorian cutover are not in line with history, * the cutover between 'BCE' and 'CE' is also not aligned with the commonly used * eras, often referred to using 'BC' and 'AD'. * <p> * Users of this class should typically ignore this method as it exists primarily * to fulfill the {@link ChronoLocalDate} contract where it is necessary to support * the Japanese calendar system. * * @return the IsoEra applicable at this date, not null */ @Override // override for Javadoc public IsoEra getEra() { return (getYear() >= 1 ? IsoEra.CE : IsoEra.BCE); }