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


Java IsoFields.QUARTER_OF_YEAR属性代码示例

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


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

示例1: data_resolveTwoNoChange

@DataProvider(name="resolveTwoNoChange")
Object[][] data_resolveTwoNoChange() {
    return new Object[][]{
            {YEAR, 2012, MONTH_OF_YEAR, 5},
            {YEAR, 2012, DAY_OF_MONTH, 5},
            {YEAR, 2012, DAY_OF_WEEK, 5},
            {YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 5},
            {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5},
            {YEAR, 2012, IsoFields.QUARTER_OF_YEAR, 3},
            {YEAR, 2012, MINUTE_OF_HOUR, 5},
            {YEAR, 2012, SECOND_OF_MINUTE, 5},
            {YEAR, 2012, NANO_OF_SECOND, 5},

            {MONTH_OF_YEAR, 5, DAY_OF_MONTH, 5},
            {MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
            {MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_YEAR, 5},
            {MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_MONTH, 5},
            {MONTH_OF_YEAR, 3, IsoFields.QUARTER_OF_YEAR, 5},
            {MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5},
            {MONTH_OF_YEAR, 5, SECOND_OF_MINUTE, 5},
            {MONTH_OF_YEAR, 5, NANO_OF_SECOND, 5},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:23,代码来源:TCKDateTimeParseResolver.java

示例2: data_resolveThreeNoChange

@DataProvider(name="resolveThreeNoChange")
Object[][] data_resolveThreeNoChange() {
    return new Object[][]{
            {YEAR, 2012, MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
            {YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 5, DAY_OF_MONTH, 5},
            {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5, DAY_OF_MONTH, 5},
            {YEAR, 2012, MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
            {ERA, 1, MONTH_OF_YEAR, 5, DAY_OF_MONTH, 5},
            {MONTH_OF_YEAR, 1, DAY_OF_MONTH, 5, IsoFields.QUARTER_OF_YEAR, 3},
            {HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5},
            {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKDateTimeParseResolver.java

示例3: data_isofields

@DataProvider(name="isofields")
Object[][] data_isofields() {
    return new Object[][] {
           {IsoFields.DAY_OF_QUARTER, 49, ValueRange.of(1, 91)},
           {IsoFields.QUARTER_OF_YEAR, 2, ValueRange.of(1, 4)},
           {IsoFields.WEEK_OF_WEEK_BASED_YEAR, 20, ValueRange.of(1, 52)},
           {IsoFields.WEEK_BASED_YEAR, 2016, ValueRange.of(LocalDate.MIN.getYear(),
                                                           LocalDate.MAX.getYear())},
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:TCKIsoFields.java


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