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


Java ThaiBuddhistEra.BE属性代码示例

本文整理汇总了Java中java.time.chrono.ThaiBuddhistEra.BE属性的典型用法代码示例。如果您正苦于以下问题:Java ThaiBuddhistEra.BE属性的具体用法?Java ThaiBuddhistEra.BE怎么用?Java ThaiBuddhistEra.BE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在java.time.chrono.ThaiBuddhistEra的用法示例。


在下文中一共展示了ThaiBuddhistEra.BE属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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

示例2: 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

示例3: data_prolepticYear

@DataProvider(name="prolepticYear")
Object[][] data_prolepticYear() {
    return new Object[][] {
        {1, ThaiBuddhistEra.BE, 4 + YDIFF, 4 + YDIFF, true},
        {1, ThaiBuddhistEra.BE, 7 + YDIFF, 7 + YDIFF, false},
        {1, ThaiBuddhistEra.BE, 8 + YDIFF, 8 + YDIFF, true},
        {1, ThaiBuddhistEra.BE, 1000 + YDIFF, 1000 + YDIFF, false},
        {1, ThaiBuddhistEra.BE, 2000 + YDIFF, 2000 + YDIFF, true},
        {1, ThaiBuddhistEra.BE, 0, 0, false},
        {1, ThaiBuddhistEra.BE, -4 + YDIFF, -4 + YDIFF, true},
        {1, ThaiBuddhistEra.BE, -7 + YDIFF, -7 + YDIFF, false},
        {1, ThaiBuddhistEra.BE, -100 + YDIFF, -100 + YDIFF, false},
        {1, ThaiBuddhistEra.BE, -800 + YDIFF, -800 + YDIFF, true},

        {0, ThaiBuddhistEra.BEFORE_BE, -3 - YDIFF, 4 + YDIFF, true},
        {0, ThaiBuddhistEra.BEFORE_BE, -6 - YDIFF, 7 + YDIFF, false},
        {0, ThaiBuddhistEra.BEFORE_BE, -7 - YDIFF, 8 + YDIFF, true},
        {0, ThaiBuddhistEra.BEFORE_BE, -999 - YDIFF, 1000 + YDIFF, false},
        {0, ThaiBuddhistEra.BEFORE_BE, -1999 - YDIFF, 2000 + YDIFF, true},
        {0, ThaiBuddhistEra.BEFORE_BE, 1, 0, false},
        {0, ThaiBuddhistEra.BEFORE_BE, 5 - YDIFF, -4 + YDIFF, true},
        {0, ThaiBuddhistEra.BEFORE_BE, 8 - YDIFF, -7 + YDIFF, false},
        {0, ThaiBuddhistEra.BEFORE_BE, 101 - YDIFF, -100 + YDIFF, false},
        {0, ThaiBuddhistEra.BEFORE_BE, 801 - YDIFF, -800 + YDIFF, true},

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

示例4: data_of_eras

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


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