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


Java JapaneseEra.TAISHO属性代码示例

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


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

示例1: data_createByEra

@DataProvider(name="createByEra")
Object[][] data_createByEra() {
    return new Object[][] {
            {JapaneseEra.HEISEI, 1996 - YDIFF_HEISEI, 2, 29, 60, LocalDate.of(1996, 2, 29)},
            {JapaneseEra.HEISEI, 2000 - YDIFF_HEISEI, 2, 29, 60, LocalDate.of(2000, 2, 29)},
            {JapaneseEra.MEIJI, 1874 - YDIFF_MEIJI, 2, 28, 59, LocalDate.of(1874, 2, 28)},
            {JapaneseEra.SHOWA, 1928 - YDIFF_SHOWA, 12, 25, 360, LocalDate.of(1928, 12, 25)},
            {JapaneseEra.TAISHO, 1916 - YDIFF_TAISHO, 7, 30, 212, LocalDate.of(1916, 7, 30)},
            {JapaneseEra.MEIJI, 6, 1, 1, 1, LocalDate.of(1873, 1, 1)},
            {JapaneseEra.MEIJI, 45, 7, 29, 211, LocalDate.of(1912, 7, 29)},
            {JapaneseEra.TAISHO, 1, 7, 30, 1, LocalDate.of(1912, 7, 30)},
            {JapaneseEra.TAISHO, 15, 12, 24, 358, LocalDate.of(1926, 12, 24)},
            {JapaneseEra.SHOWA, 1, 12, 25, 1, LocalDate.of(1926, 12, 25)},
            {JapaneseEra.SHOWA, 64, 1, 7, 7, LocalDate.of(1989, 1, 7)},
            {JapaneseEra.HEISEI, 1, 1, 8, 1, LocalDate.of(1989, 1, 8)},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:17,代码来源:TCKJapaneseChronology.java

示例2: data_prolepticYear

@DataProvider(name="prolepticYear")
Object[][] data_prolepticYear() {
    return new Object[][] {
            {2, JapaneseEra.HEISEI, 1, 1 + YDIFF_HEISEI, false},
            {2, JapaneseEra.HEISEI, 100, 100 + YDIFF_HEISEI, true},

            {-1, JapaneseEra.MEIJI, 9, 9 + YDIFF_MEIJI, true},
            {-1, JapaneseEra.MEIJI, 10, 10 + YDIFF_MEIJI, false},

            {1, JapaneseEra.SHOWA, 1, 1 + YDIFF_SHOWA, false},
            {1, JapaneseEra.SHOWA, 7, 7 + YDIFF_SHOWA, true},

            {0, JapaneseEra.TAISHO, 1, 1 + YDIFF_TAISHO, true},
            {0, JapaneseEra.TAISHO, 4, 4 + YDIFF_TAISHO, false},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:16,代码来源:TCKJapaneseChronology.java

示例3: data_prolepticYearError

@DataProvider(name="prolepticYearError")
Object[][] data_prolepticYearError() {
    return new Object[][] {
            {JapaneseEra.MEIJI, 100},
            {JapaneseEra.MEIJI, 0},
            {JapaneseEra.MEIJI, -10},

            {JapaneseEra.SHOWA, 100},
            {JapaneseEra.SHOWA, 0},
            {JapaneseEra.SHOWA, -10},

            {JapaneseEra.TAISHO, 100},
            {JapaneseEra.TAISHO, 0},
            {JapaneseEra.TAISHO, -10},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:16,代码来源:TCKJapaneseChronology.java

示例4: data_of_eras

@DataProvider(name = "JapaneseEras")
Object[][] data_of_eras() {
    return new Object[][] {
                {JapaneseEra.HEISEI, "Heisei", 2},
                {JapaneseEra.SHOWA, "Showa", 1},
                {JapaneseEra.TAISHO, "Taisho", 0},
                {JapaneseEra.MEIJI, "Meiji", -1},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:9,代码来源:TCKJapaneseEra.java

示例5: data_japanseseEras

@DataProvider(name="japaneseEras")
Object[][] data_japanseseEras() {
    return new Object[][] {
        { JapaneseEra.MEIJI, -1, "Meiji"},
        { JapaneseEra.TAISHO, 0, "Taisho"},
        { JapaneseEra.SHOWA, 1, "Showa"},
        { JapaneseEra.HEISEI, 2, "Heisei"},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:9,代码来源:TCKJapaneseChronology.java


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