Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_System.java84 assertEquals(system.getZone(), ZoneOffset.UTC); in test_instant()
98 assertEquals(system.getZone(), ZoneOffset.UTC); in test_millis()
113 assertEquals(test.getZone(), ZoneOffset.UTC); in test_systemUTC()
119 assertEquals(test.getZone(), ZoneId.systemDefault()); in test_systemDefaultZone()
125 assertEquals(test.getZone(), PARIS); in test_system_ZoneId()
137 assertEquals(test.getZone(), PARIS); in test_withZone()
138 assertEquals(changed.getZone(), MOSCOW); in test_withZone()
144 assertEquals(changed.getZone(), PARIS); in test_withZone_equal()
150 assertEquals(changed.getZone(), PARIS); in test_withZone_fromUTC()
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_tickMillis_ZoneId()
176 assertEquals(test.getZone(), PARIS); in test_tickSeconds_ZoneId()
190 assertEquals(test.getZone(), PARIS); in test_tickMinutes_ZoneId()
205 assertEquals(test.getZone(), PARIS); in test_withZone()
206 assertEquals(changed.getZone(), MOSCOW); in test_withZone()
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_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.java282 assertEquals(test.getZone(), ZoneOffset.UTC);
311 assertEquals(test.getZone(), ZoneOffset.UTC);
327 assertEquals(test.getZone(), offset);
343 assertEquals(test.getZone(), zone);
684 return (R) TEST_DATE_TIME_PARIS.getZone();
708 return (R) TEST_DATE_TIME_PARIS.getZone();
738 assertEquals(t.getZone().getId(), zoneId);
771 assertEquals(t.getZone().getId(), zoneId);
969 assertEquals(TEST_DATE_TIME.query(TemporalQueries.zoneId()), TEST_DATE_TIME.getZone());
970 assertEquals(TemporalQueries.zoneId().queryFrom(TEST_DATE_TIME), TEST_DATE_TIME.getZone());
[all …]
/libcore/ojluni/src/main/java/java/time/
DClock.java398 public abstract ZoneId getZone(); in getZone() method in Clock
594 public ZoneId getZone() { in getZone() method in Clock.SystemClock
647 public ZoneId getZone() { in getZone() method in Clock.FixedClock
697 public ZoneId getZone() { in getZone() method in Clock.OffsetClock
698 return baseClock.getZone(); in getZone()
702 if (zone.equals(baseClock.getZone())) { // intentional NPE in withZone()
747 public ZoneId getZone() { in getZone() method in Clock.TickClock
748 return baseClock.getZone(); in getZone()
752 if (zone.equals(baseClock.getZone())) { // intentional NPE in withZone()
805 public ZoneId getZone() { in getZone() method in Clock.SourceClock
DZonedDateTime.java229 return ofInstant(now, clock.getZone()); in now()
887 ZoneOffsetTransition trans = getZone().getRules().getTransition(dateTime); in withEarlierOffsetAtOverlap()
915 ZoneOffsetTransition trans = getZone().getRules().getTransition(toLocalDateTime()); in withLaterOffsetAtOverlap()
940 public ZoneId getZone() { in getZone() method in ZonedDateTime
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java605 CalendarDate d = jcal.getCalendarDate(time, getZone()); in roll()
648 CalendarDate jd = jcal.getCalendarDate(time, getZone()); in roll()
649 CalendarDate d = jcal.getCalendarDate(Long.MAX_VALUE, getZone()); in roll()
672 CalendarDate jd = jcal.getCalendarDate(time, getZone()); in roll()
673 CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); in roll()
788 CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); in roll()
1101 LocalGregorianCalendar.Date d = jcal.getCalendarDate(Long.MAX_VALUE, getZone()); in getMaximum()
1182 getZone());
1188 long since = eras[eraIndex].getSince(getZone());
1189 CalendarDate d = jcal.getCalendarDate(since, getZone());
[all …]
DGregorianCalendar.java702 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in GregorianCalendar()
740 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in GregorianCalendar()
1093 long millis = adjustForZoneAndDaylightSavingsTime(tzMask, utcTime, getZone());
1210 CalendarDate d = calsys.getCalendarDate(time, getZone()); in roll()
1931 CalendarDate d = mincal.getCalendarDate(Long.MIN_VALUE, getZone()); in getActualMaximum()
2304 TimeZone tz = getZone(); in computeFields()
2387 cdate = (BaseCalendar.Date) jcal.newCalendarDate(getZone()); in computeFields()
2764 TimeZone zone = getZone(); in computeTime()
3368 gdate = (BaseCalendar.Date) gcal.newCalendarDate(getZone()); in readObject()
3418 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone(zdt.getZone())); in from()
DDate.java1066 TimeZone zi = date.getZone(); in toString()
1230 if (tz != cdate.getZone()) { in normalize()
1247 TimeZone tz = date.getZone(); in normalize()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java233 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withEarlierOffsetAtOverlap()
245 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withLaterOffsetAtOverlap()
262 public ZoneId getZone() { in getZone() method in ChronoZonedDateTimeImpl
380 …return toLocalDateTime().hashCode() ^ getOffset().hashCode() ^ Integer.rotateLeft(getZone().hashCo… in hashCode()
386 if (getOffset() != getZone()) { in toString()
387 str += '[' + getZone().toString() + ']'; in toString()
DChronoZonedDateTime.java284 ZoneId getZone(); in getZone() method
492 return (R) getZone(); in query()
583 cmp = getZone().getId().compareTo(other.getZone().getId()); in compareTo()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstantSource.java111 assertEquals(test.withZone(ZoneOffset.UTC).getZone(), ZoneOffset.UTC);
112 assertEquals(test.withZone(PARIS).getZone(), PARIS);
113 assertEquals(test.withZone(ZoneOffset.UTC).withZone(PARIS).getZone(), PARIS);
/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/test/java/time/format/
DTestUnicodeExtension.java859 assertEquals(dtf.getZone(), zoneExpected); in test_localizedBy()
882 assertEquals(dtf.getZone(), zoneExpected); in test_withLocale()
909 assertEquals(dtf.getZone(), zoneExpected); in test_ofPattern()
923 assertEquals(dtf.getZone(), zoneExpected); in test_toFormatter()
936 assertEquals(dtf.getZone(), ZoneId.of(expectedZone)); in test_shortTZID()
/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/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/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java106 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
DChronoZonedDateTimeTest.java99 public ZoneId getZone() { in getZone() method in ChronoZonedDateTimeTest.TestChronoZonedDateTime
/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

12