本文整理汇总了Java中java.time.temporal.TemporalQueries.chronology方法的典型用法代码示例。如果您正苦于以下问题:Java TemporalQueries.chronology方法的具体用法?Java TemporalQueries.chronology怎么用?Java TemporalQueries.chronology使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.time.temporal.TemporalQueries
的用法示例。
在下文中一共展示了TemporalQueries.chronology方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_2008_06, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{TEST_2008_06, TemporalQueries.zoneId(), null},
{TEST_2008_06, TemporalQueries.precision(), ChronoUnit.MONTHS},
{TEST_2008_06, TemporalQueries.zone(), null},
{TEST_2008_06, TemporalQueries.offset(), null},
{TEST_2008_06, TemporalQueries.localDate(), null},
{TEST_2008_06, TemporalQueries.localTime(), null},
};
}
示例2: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_2008, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{TEST_2008, TemporalQueries.zoneId(), null},
{TEST_2008, TemporalQueries.precision(), ChronoUnit.YEARS},
{TEST_2008, TemporalQueries.zone(), null},
{TEST_2008, TemporalQueries.offset(), null},
{TEST_2008, TemporalQueries.localDate(), null},
{TEST_2008, TemporalQueries.localTime(), null},
};
}
示例3: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{Month.JUNE, TemporalQueries.zoneId(), null},
{Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
{Month.JUNE, TemporalQueries.zone(), null},
{Month.JUNE, TemporalQueries.offset(), null},
{Month.JUNE, TemporalQueries.localDate(), null},
{Month.JUNE, TemporalQueries.localTime(), null},
};
}
示例4: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{DayOfWeek.FRIDAY, TemporalQueries.chronology(), null},
{DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null},
{DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS},
{DayOfWeek.FRIDAY, TemporalQueries.zone(), null},
{DayOfWeek.FRIDAY, TemporalQueries.offset(), null},
{DayOfWeek.FRIDAY, TemporalQueries.localDate(), null},
{DayOfWeek.FRIDAY, TemporalQueries.localTime(), null},
};
}
示例5: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.zoneId(), null},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.precision(), ChronoUnit.NANOS},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.zone(), null},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.offset(), null},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.localDate(), LocalDate.of(2007, 7, 15)},
{TEST_2007_07_15_12_30_40_987654321, TemporalQueries.localTime(), LocalTime.of(12, 30, 40, 987654321)},
};
}
示例6: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_2007_07_15, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{TEST_2007_07_15, TemporalQueries.zoneId(), null},
{TEST_2007_07_15, TemporalQueries.precision(), ChronoUnit.DAYS},
{TEST_2007_07_15, TemporalQueries.zone(), null},
{TEST_2007_07_15, TemporalQueries.offset(), null},
{TEST_2007_07_15, TemporalQueries.localDate(), TEST_2007_07_15},
{TEST_2007_07_15, TemporalQueries.localTime(), null},
};
}
示例7: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_12_30_40_987654321, TemporalQueries.chronology(), null},
{TEST_12_30_40_987654321, TemporalQueries.zoneId(), null},
{TEST_12_30_40_987654321, TemporalQueries.precision(), ChronoUnit.NANOS},
{TEST_12_30_40_987654321, TemporalQueries.zone(), null},
{TEST_12_30_40_987654321, TemporalQueries.offset(), null},
{TEST_12_30_40_987654321, TemporalQueries.localDate(), null},
{TEST_12_30_40_987654321, TemporalQueries.localTime(), TEST_12_30_40_987654321},
};
}
示例8: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_12345_123456789, TemporalQueries.chronology(), null},
{TEST_12345_123456789, TemporalQueries.zoneId(), null},
{TEST_12345_123456789, TemporalQueries.precision(), NANOS},
{TEST_12345_123456789, TemporalQueries.zone(), null},
{TEST_12345_123456789, TemporalQueries.offset(), null},
{TEST_12345_123456789, TemporalQueries.localDate(), null},
{TEST_12345_123456789, TemporalQueries.localTime(), null},
};
}
示例9: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_11_30_59_500_PONE, TemporalQueries.chronology(), null},
{TEST_11_30_59_500_PONE, TemporalQueries.zoneId(), null},
{TEST_11_30_59_500_PONE, TemporalQueries.precision(), ChronoUnit.NANOS},
{TEST_11_30_59_500_PONE, TemporalQueries.zone(), OFFSET_PONE},
{TEST_11_30_59_500_PONE, TemporalQueries.offset(), OFFSET_PONE},
{TEST_11_30_59_500_PONE, TemporalQueries.localDate(), null},
{TEST_11_30_59_500_PONE, TemporalQueries.localTime(), LocalTime.of(11, 30, 59, 500)},
};
}
示例10: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{TEST_07_15, TemporalQueries.chronology(), IsoChronology.INSTANCE},
{TEST_07_15, TemporalQueries.zoneId(), null},
{TEST_07_15, TemporalQueries.precision(), null},
{TEST_07_15, TemporalQueries.zone(), null},
{TEST_07_15, TemporalQueries.offset(), null},
{TEST_07_15, TemporalQueries.localDate(), null},
{TEST_07_15, TemporalQueries.localTime(), null},
};
}
示例11: data_query
import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
return new Object[][] {
{ZoneOffset.UTC, TemporalQueries.chronology(), null},
{ZoneOffset.UTC, TemporalQueries.zoneId(), null},
{ZoneOffset.UTC, TemporalQueries.precision(), null},
{ZoneOffset.UTC, TemporalQueries.zone(), ZoneOffset.UTC},
{ZoneOffset.UTC, TemporalQueries.offset(), ZoneOffset.UTC},
{ZoneOffset.UTC, TemporalQueries.localDate(), null},
{ZoneOffset.UTC, TemporalQueries.localTime(), null},
};
}