/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 365 public abstract ZoneId getZone(); in getZone() method in Clock 455 public ZoneId getZone() { in getZone() method in Clock.SystemClock 505 public ZoneId getZone() { in getZone() method in Clock.FixedClock 555 public ZoneId getZone() { in getZone() method in Clock.OffsetClock 556 return baseClock.getZone(); in getZone() 560 if (zone.equals(baseClock.getZone())) { // intentional NPE in withZone() 605 public ZoneId getZone() { in getZone() method in Clock.TickClock 606 return baseClock.getZone(); in getZone() 610 if (zone.equals(baseClock.getZone())) { // intentional NPE in withZone()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock.java | 92 public ZoneId getZone() { in getZone() method in TCKClock.MockInstantClock 122 assertEquals(MOCK_INSTANT.getZone(), ZONE); in test_mockInstantClock_get() 131 assertEquals(changed.getZone(), london); in test_mockInstantClock_withZone()
|
D | TCKClock_Tick.java | 90 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_250millis() 98 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_250micros() 106 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_20nanos() 165 assertEquals(test.getZone(), PARIS); in test_tickSeconds_ZoneId() 179 assertEquals(test.getZone(), PARIS); in test_tickMinutes_ZoneId() 194 assertEquals(test.getZone(), PARIS); in test_withZone() 195 assertEquals(changed.getZone(), MOSCOW); in test_withZone()
|
D | TCKClock_Fixed.java | 87 assertEquals(test.getZone(), PARIS); in test_fixed_InstantZoneId() 105 assertEquals(test.getZone(), PARIS); in test_withZone() 106 assertEquals(changed.getZone(), MOSCOW); in test_withZone() 112 assertEquals(changed.getZone(), PARIS); in test_withZone_equal()
|
D | TCKClock_Offset.java | 91 assertEquals(test.getZone(), PARIS); in test_offset_ClockDuration() 114 assertEquals(test.getZone(), PARIS); in test_withZone() 115 assertEquals(changed.getZone(), MOSCOW); in test_withZone()
|
D | TCKZonedDateTime.java | 288 assertEquals(test.getZone(), ZoneOffset.UTC); 317 assertEquals(test.getZone(), ZoneOffset.UTC); 333 assertEquals(test.getZone(), offset); 349 assertEquals(test.getZone(), zone); 690 return (R) TEST_DATE_TIME_PARIS.getZone(); 714 return (R) TEST_DATE_TIME_PARIS.getZone(); 744 assertEquals(t.getZone().getId(), zoneId); 776 assertEquals(t.getZone().getId(), zoneId); 974 assertEquals(TEST_DATE_TIME.query(TemporalQueries.zoneId()), TEST_DATE_TIME.getZone()); 975 assertEquals(TemporalQueries.zoneId().queryFrom(TEST_DATE_TIME), TEST_DATE_TIME.getZone()); [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 601 CalendarDate d = jcal.getCalendarDate(time, getZone()); in roll() 644 CalendarDate jd = jcal.getCalendarDate(time, getZone()); in roll() 645 CalendarDate d = jcal.getCalendarDate(Long.MAX_VALUE, getZone()); in roll() 668 CalendarDate jd = jcal.getCalendarDate(time, getZone()); in roll() 669 CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); in roll() 784 CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); in roll() 1095 getZone()); in getMaximum() 1179 getZone()); in getActualMinimum() 1186 long since = eras[eraIndex].getSince(getZone()); in getActualMinimum() 1187 CalendarDate d = jcal.getCalendarDate(since, getZone()); in getActualMinimum() [all …]
|
D | GregorianCalendar.java | 701 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in GregorianCalendar() 739 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in GregorianCalendar() 1092 long millis = adjustForZoneAndDaylightSavingsTime(tzMask, utcTime, getZone()); 1213 CalendarDate d = calsys.getCalendarDate(time, getZone()); in roll() 1967 CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone()); in getActualMaximum() 2343 TimeZone tz = getZone(); in computeFields() 2426 cdate = (BaseCalendar.Date) jcal.newCalendarDate(getZone()); in computeFields() 2803 TimeZone zone = getZone(); in computeTime() 3406 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in readObject() 3456 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone(zdt.getZone())); in from()
|
D | Date.java | 1064 TimeZone zi = date.getZone(); in toString() 1228 if (tz != cdate.getZone()) { in normalize() 1245 TimeZone tz = date.getZone(); in normalize()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 232 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withEarlierOffsetAtOverlap() 244 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withLaterOffsetAtOverlap() 261 public ZoneId getZone() { in getZone() method in ChronoZonedDateTimeImpl 378 …return toLocalDateTime().hashCode() ^ getOffset().hashCode() ^ Integer.rotateLeft(getZone().hashCo… in hashCode() 384 if (getOffset() != getZone()) { in toString() 385 str += '[' + getZone().toString() + ']'; in toString()
|
D | ChronoZonedDateTime.java | 277 ZoneId getZone(); in getZone() method 485 return (R) getZone(); in query() 576 cmp = getZone().getId().compareTo(other.getZone().getId()); in compareTo()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | ImmutableGregorianDate.java | 189 public TimeZone getZone() { in getZone() method in ImmutableGregorianDate 190 return date.getZone(); in getZone()
|
D | AbstractCalendar.java | 123 TimeZone zi = date.getZone(); in getCalendarDate() 183 TimeZone zi = date.getZone(); in getTime()
|
D | LocalGregorianCalendar.java | 255 Date tmp = newCalendarDate(date.getZone()); in validate() 334 long since = era.getSince(date.getZone()); in normalize()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoZonedDateTimeSerialization.java | 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 177 assertEquals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getZone(), null); in test_ofLocalizedDate_basics() 184 assertEquals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getZone(), null); in test_ofLocalizedTime_basics() 191 assertEquals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getZone(), null); in test_ofLocalizedDateTime1_basics() 198 …quals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL, FormatStyle.MEDIUM).getZone(), null); in test_ofLocalizedDateTime2_basics() 292 assertEquals(DateTimeFormatter.ISO_LOCAL_DATE.getZone(), null); in test_isoLocalDate_basics() 350 assertEquals(DateTimeFormatter.ISO_OFFSET_DATE.getZone(), null); in test_isoOffsetDate_basics() 410 assertEquals(DateTimeFormatter.ISO_DATE.getZone(), null); in test_isoDate_basics() 480 assertEquals(DateTimeFormatter.ISO_LOCAL_TIME.getZone(), null); in test_isoLocalTime_basics() 550 assertEquals(DateTimeFormatter.ISO_OFFSET_TIME.getZone(), null); in test_isoOffsetTime_basics() 622 assertEquals(DateTimeFormatter.ISO_TIME.getZone(), null); in test_isoTime_basics() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | ZonedDateTimeTest.java | 105 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfInstant() 175 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfLocal()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronoZonedDateTimeTest.java | 75 public ZoneId getZone() { in getZone() method in ChronoZonedDateTimeTest.TestChronoZonedDateTime
|
D | IsoChronologyTest.java | 106 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
|
D | JapaneseChronologyTest.java | 53 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKHijrahChronology.java | 111 …tEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now(Clock.systemDefaultZone().getZone())) ; in test_dateNow() 115 …ology.INSTANCE.dateNow(), HijrahChronology.INSTANCE.dateNow(Clock.systemDefaultZone().getZone())) ; in test_dateNow() 119 …logy.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone())) ; in test_dateNow() 121 …Equals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahDate.now(Clock.system(zoneId).getZone())) ; in test_dateNow()
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | ImmutableGregorianDate.java | 185 public java.util.TimeZone getZone() { in getZone() method in ImmutableGregorianDate
|
D | CalendarDate.java | 200 public java.util.TimeZone getZone() { in getZone() method in CalendarDate
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 126 ZoneId overrideZone = formatter.getZone(); in adjust()
|
D | DateTimeParseContext.java | 330 parsed.zone = (parsed.zone != null ? parsed.zone : formatter.getZone()); in toResolved()
|