本文整理汇总了Java中java.time.chrono.MinguoEra.BEFORE_ROC属性的典型用法代码示例。如果您正苦于以下问题:Java MinguoEra.BEFORE_ROC属性的具体用法?Java MinguoEra.BEFORE_ROC怎么用?Java MinguoEra.BEFORE_ROC使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类java.time.chrono.MinguoEra
的用法示例。
在下文中一共展示了MinguoEra.BEFORE_ROC属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: data_prolepticYear
@DataProvider(name="prolepticYear")
Object[][] data_prolepticYear() {
return new Object[][] {
{1, MinguoEra.ROC, 1912 - YDIFF, 1912 - YDIFF, true},
{1, MinguoEra.ROC, 1916 - YDIFF, 1916 - YDIFF, true},
{1, MinguoEra.ROC, 1914 - YDIFF, 1914 - YDIFF, false},
{1, MinguoEra.ROC, 2000 - YDIFF, 2000 - YDIFF, true},
{1, MinguoEra.ROC, 2100 - YDIFF, 2100 - YDIFF, false},
{1, MinguoEra.ROC, 0, 0, false},
{1, MinguoEra.ROC, 1908 - YDIFF, 1908 - YDIFF, true},
{1, MinguoEra.ROC, 1900 - YDIFF, 1900 - YDIFF, false},
{1, MinguoEra.ROC, 1600 - YDIFF, 1600 - YDIFF, true},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1911, 1912 - YDIFF, true},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1915, 1916 - YDIFF, true},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1913, 1914 - YDIFF, false},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1999, 2000 - YDIFF, true},
{0, MinguoEra.BEFORE_ROC, YDIFF - 2099, 2100 - YDIFF, false},
{0, MinguoEra.BEFORE_ROC, 1, 0, false},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1907, 1908 - YDIFF, true},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1899, 1900 - YDIFF, false},
{0, MinguoEra.BEFORE_ROC, YDIFF - 1599, 1600 - YDIFF, true},
};
}
示例2: data_era_epochSecond
@DataProvider(name = "era_epochSecond_dataProvider")
Object[][] data_era_epochSecond() {
return new Object[][] {
{JapaneseChronology.INSTANCE, JapaneseEra.MEIJI, 1873 - YDIFF_MEIJI, 9, 7, 1, 2, 2, OFFSET_P0100},
{JapaneseChronology.INSTANCE, JapaneseEra.SHOWA, 1928 - YDIFF_SHOWA, 2, 28, 1, 2, 2, OFFSET_M0100},
{JapaneseChronology.INSTANCE, JapaneseEra.HEISEI, 1989 - YDIFF_HEISEI, 1, 8, 1, 2, 2, OFFSET_P0100},
{HijrahChronology.INSTANCE, HijrahEra.AH, 1434, 9, 7, 1, 2, 2, OFFSET_P0100},
{MinguoChronology.INSTANCE, MinguoEra.BEFORE_ROC, 1873 - YDIFF_MINGUO, 9, 7, 1, 2, 2, OFFSET_P0100},
{MinguoChronology.INSTANCE, MinguoEra.ROC, 1928 - YDIFF_MINGUO, 2, 28, 1, 2, 2, OFFSET_M0100},
{MinguoChronology.INSTANCE, MinguoEra.ROC, 1989 - YDIFF_MINGUO, 1, 8, 1, 2, 2, OFFSET_P0100},
{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1873 + YDIFF_THAIBUDDHIST, 9, 7, 1, 2, 2, OFFSET_P0100},
{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1928 + YDIFF_THAIBUDDHIST, 2, 28, 1, 2, 2, OFFSET_M0100},
{ThaiBuddhistChronology.INSTANCE, ThaiBuddhistEra.BE, 1989 + YDIFF_THAIBUDDHIST, 1, 8, 1, 2, 2, OFFSET_P0100},
{IsoChronology.INSTANCE, IsoEra.CE, 1873, 9, 7, 1, 2, 2, OFFSET_P0100},
{IsoChronology.INSTANCE, IsoEra.CE, 1928, 2, 28, 1, 2, 2, OFFSET_M0100},
{IsoChronology.INSTANCE, IsoEra.CE, 1989, 1, 8, 1, 2, 2, OFFSET_P0100},
};
}
示例3: data_of_eras
@DataProvider(name = "MinguoEras")
Object[][] data_of_eras() {
return new Object[][] {
{MinguoEra.BEFORE_ROC, "BEFORE_ROC", 0},
{MinguoEra.ROC, "ROC", 1},
};
}
示例4: data_of_calendars
@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},
};
}