Home
last modified time | relevance | path

Searched refs:getZone (Results 1 – 25 of 39) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/
DClock.java365 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/
DTCKClock.java92 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()
DTCKClock_Tick.java90 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()
DTCKClock_Fixed.java87 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()
DTCKClock_Offset.java91 assertEquals(test.getZone(), PARIS); in test_offset_ClockDuration()
114 assertEquals(test.getZone(), PARIS); in test_withZone()
115 assertEquals(changed.getZone(), MOSCOW); in test_withZone()
DTCKZonedDateTime.java288 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/
DJapaneseImperialCalendar.java601 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 …]
DGregorianCalendar.java701 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()
DDate.java1064 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/
DChronoZonedDateTimeImpl.java232 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()
DChronoZonedDateTime.java277 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/
DImmutableGregorianDate.java189 public TimeZone getZone() { in getZone() method in ImmutableGregorianDate
190 return date.getZone(); in getZone()
DAbstractCalendar.java123 TimeZone zi = date.getZone(); in getCalendarDate()
183 TimeZone zi = date.getZone(); in getTime()
DLocalGregorianCalendar.java255 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/
DTCKChronoZonedDateTimeSerialization.java99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java177 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/
DZonedDateTimeTest.java105 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/
DChronoZonedDateTimeTest.java75 public ZoneId getZone() { in getZone() method in ChronoZonedDateTimeTest.TestChronoZonedDateTime
DIsoChronologyTest.java106 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
DJapaneseChronologyTest.java53 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahChronology.java111 …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/
DImmutableGregorianDate.java185 public java.util.TimeZone getZone() { in getZone() method in ImmutableGregorianDate
DCalendarDate.java200 public java.util.TimeZone getZone() { in getZone() method in CalendarDate
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java126 ZoneId overrideZone = formatter.getZone(); in adjust()
DDateTimeParseContext.java330 parsed.zone = (parsed.zone != null ? parsed.zone : formatter.getZone()); in toResolved()

12