Home
last modified time | relevance | path

Searched refs:overrideZone (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java126 ZoneId overrideZone = formatter.getZone(); in adjust() local
127 if (overrideChrono == null && overrideZone == null) { in adjust()
137 if (Objects.equals(overrideZone, temporalZone)) { in adjust()
138 overrideZone = null; in adjust()
140 if (overrideChrono == null && overrideZone == null) { in adjust()
146 if (overrideZone != null) { in adjust()
150 return chrono.zonedDateTime(Instant.from(temporal), overrideZone); in adjust()
153 … if (overrideZone.normalized() instanceof ZoneOffset && temporal.isSupported(OFFSET_SECONDS) && in adjust()
154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
155 throw new DateTimeException("Unable to apply override zone '" + overrideZone + in adjust()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java355 …public void test_format_withZone_withChronology(Chronology overrideChrono, ZoneId overrideZone, Te… in test_format_withZone_withChronology() argument
363 .withChronology(overrideChrono).withZone(overrideZone); in test_format_withZone_withChronology()