当前位置: 首页>>代码示例>>Java>>正文


Java MinguoEra.BEFORE_ROC属性代码示例

本文整理汇总了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},

    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:25,代码来源:TCKMinguoChronology.java

示例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},

    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:TCKChronology.java

示例3: data_of_eras

@DataProvider(name = "MinguoEras")
Object[][] data_of_eras() {
    return new Object[][] {
                {MinguoEra.BEFORE_ROC, "BEFORE_ROC", 0},
                {MinguoEra.ROC, "ROC", 1},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:TCKMinguoEra.java

示例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},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:12,代码来源:TCKEraSerialization.java


注:本文中的java.time.chrono.MinguoEra.BEFORE_ROC属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。