/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetPrinter.java | 95 {"+HHMMss", "+0100", ZoneOffset.ofHoursMinutesSeconds(1, 0, 0)}, in provider_offsets() 96 {"+HHMMss", "+0102", ZoneOffset.ofHoursMinutesSeconds(1, 2, 0)}, in provider_offsets() 97 {"+HHMMss", "+0159", ZoneOffset.ofHoursMinutesSeconds(1, 59, 0)}, in provider_offsets() 98 {"+HHMMss", "+0200", ZoneOffset.ofHoursMinutesSeconds(2, 0, 0)}, in provider_offsets() 99 {"+HHMMss", "+1800", ZoneOffset.ofHoursMinutesSeconds(18, 0, 0)}, in provider_offsets() 100 {"+HHMMss", "+010215", ZoneOffset.ofHoursMinutesSeconds(1, 2, 15)}, in provider_offsets() 101 {"+HHMMss", "-0100", ZoneOffset.ofHoursMinutesSeconds(-1, 0, 0)}, in provider_offsets() 102 {"+HHMMss", "-0200", ZoneOffset.ofHoursMinutesSeconds(-2, 0, 0)}, in provider_offsets() 103 {"+HHMMss", "-1800", ZoneOffset.ofHoursMinutesSeconds(-18, 0, 0)}, in provider_offsets() 106 {"+HHMMss", "+0100", ZoneOffset.ofHoursMinutesSeconds(1, 0, 0)}, in provider_offsets() [all …]
|
D | TestZoneOffsetParser.java | 176 {"+HHMMss", "+0100", ZoneOffset.ofHoursMinutesSeconds(1, 0, 0)}, in provider_offsets() 177 {"+HHMMss", "+0159", ZoneOffset.ofHoursMinutesSeconds(1, 59, 0)}, in provider_offsets() 178 {"+HHMMss", "+0200", ZoneOffset.ofHoursMinutesSeconds(2, 0, 0)}, in provider_offsets() 179 {"+HHMMss", "+1800", ZoneOffset.ofHoursMinutesSeconds(18, 0, 0)}, in provider_offsets() 180 {"+HHMMss", "+010215", ZoneOffset.ofHoursMinutesSeconds(1, 2, 15)}, in provider_offsets() 181 {"+HHMMss", "-0100", ZoneOffset.ofHoursMinutesSeconds(-1, 0, 0)}, in provider_offsets() 182 {"+HHMMss", "-0200", ZoneOffset.ofHoursMinutesSeconds(-2, 0, 0)}, in provider_offsets() 183 {"+HHMMss", "-1800", ZoneOffset.ofHoursMinutesSeconds(-18, 0, 0)}, in provider_offsets() 187 {"+HHMMss", "+010000", ZoneOffset.ofHoursMinutesSeconds(1, 0, 0)}, in provider_offsets() 188 {"+HHMMss", "+010203", ZoneOffset.ofHoursMinutesSeconds(1, 2, 3)}, in provider_offsets() [all …]
|
D | TestDateTimeFormatterBuilder.java | 464 ZoneOffset offset = ZoneOffset.ofHoursMinutesSeconds(h, m, s); in test_appendOffset_format() 472 ZoneOffset offset = ZoneOffset.ofHoursMinutesSeconds(h, m, s); in test_appendOffset_parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneOffset.java | 102 …TemporalAccessor[] array = {ZoneOffset.ofHours(1), ZoneOffset.ofHoursMinutesSeconds(-5, -6, -30) }; in samples() 350 ZoneOffset test = ZoneOffset.ofHoursMinutesSeconds(i, j, k); in test_factory_int_hours_minutes_seconds() 356 ZoneOffset test1 = ZoneOffset.ofHoursMinutesSeconds(-18, 0, 0); in test_factory_int_hours_minutes_seconds() 358 ZoneOffset test2 = ZoneOffset.ofHoursMinutesSeconds(18, 0, 0); in test_factory_int_hours_minutes_seconds() 364 ZoneOffset.ofHoursMinutesSeconds(1, -1, 0); in test_factory_int_hours_minutes_seconds_plusHoursMinusMinutes() 369 ZoneOffset.ofHoursMinutesSeconds(1, 0, -1); in test_factory_int_hours_minutes_seconds_plusHoursMinusSeconds() 374 ZoneOffset.ofHoursMinutesSeconds(-1, 1, 0); in test_factory_int_hours_minutes_seconds_minusHoursPlusMinutes() 379 ZoneOffset.ofHoursMinutesSeconds(-1, 0, 1); in test_factory_int_hours_minutes_seconds_minusHoursPlusSeconds() 384 ZoneOffset.ofHoursMinutesSeconds(0, -1, 1); in test_factory_int_hours_minutes_seconds_zeroHoursMinusMinutesPlusSeconds() 389 ZoneOffset.ofHoursMinutesSeconds(0, 1, -1); in test_factory_int_hours_minutes_seconds_zeroHoursPlusMinutesMinusSeconds() [all …]
|
D | TCKOffsetTime.java | 787 …T_SECONDS, 7205), OffsetTime.of(12, 30, 40, 987654321, ZoneOffset.ofHoursMinutesSeconds(2, 0, 5)));
|
/libcore/ojluni/src/main/java/java/time/ |
D | ZoneOffset.java | 242 return ofHoursMinutesSeconds(-hours, -minutes, -seconds); in of() 244 return ofHoursMinutesSeconds(hours, minutes, seconds); in of() 277 return ofHoursMinutesSeconds(hours, 0, 0); in ofHours() 294 return ofHoursMinutesSeconds(hours, minutes, 0); in ofHoursMinutes() 310 public static ZoneOffset ofHoursMinutesSeconds(int hours, int minutes, int seconds) { in ofHoursMinutesSeconds() method in ZoneOffset
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionRuleSerialization.java | 90 ZoneOffset.ofHoursMinutesSeconds(-12, -20, -50), in test_serialization_unusualOffsets() 91 ZoneOffset.ofHoursMinutesSeconds(-4, -10, -34), in test_serialization_unusualOffsets()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 87 private static final ZoneOffset OFFSET_P012345 = ZoneOffset.ofHoursMinutesSeconds(1, 23, 45); 88 private static final ZoneOffset OFFSET_P000045 = ZoneOffset.ofHoursMinutesSeconds(0, 0, 45); 92 private static final ZoneOffset OFFSET_M012345 = ZoneOffset.ofHoursMinutesSeconds(-1, -23, -45); 93 private static final ZoneOffset OFFSET_M000045 = ZoneOffset.ofHoursMinutesSeconds(0, 0, -45);
|
D | TCKDateTimeFormatterBuilder.java | 384 ZoneOffset offset = ZoneOffset.ofHoursMinutesSeconds(h, m, s); in test_appendOffset_format()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 124 ZoneOffset offset = ZoneOffset.ofHoursMinutesSeconds(0, -1, -15); in test_London_preTimeZones() 281 … assertEquals(test.getStandardOffset(instant), ZoneOffset.ofHoursMinutesSeconds(0, -1, -15)); in test_London_getStandardOffset() 297 assertEquals(first.getOffsetBefore(), ZoneOffset.ofHoursMinutesSeconds(0, -1, -15)); in test_London_getTransitions() 506 ZoneOffset offset = ZoneOffset.ofHoursMinutesSeconds(0, 9, 21); in test_Paris_preTimeZones() 659 … assertEquals(test.getStandardOffset(instant), ZoneOffset.ofHoursMinutesSeconds(0, 9, 21)); in test_Paris_getStandardOffset() 956 assertEquals(trans.isValidOffset(ZoneOffset.ofHoursMinutesSeconds(+12, 33, 4)), true); in test_Apia_jumpForwardOverInternationalDateLine_P12_to_M12() 957 assertEquals(trans.isValidOffset(ZoneOffset.ofHoursMinutesSeconds(-11, -26, -56)), true); in test_Apia_jumpForwardOverInternationalDateLine_P12_to_M12() 959 …nstant(), LocalDateTime.of(1892, 7, 4, 0, 0).toInstant(ZoneOffset.ofHoursMinutesSeconds(-11, -26, … in test_Apia_jumpForwardOverInternationalDateLine_P12_to_M12()
|