/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 196 public static Clock system(ZoneId zone) { in system() argument 197 Objects.requireNonNull(zone, "zone"); in system() 198 return new SystemClock(zone); in system() 221 public static Clock tickSeconds(ZoneId zone) { in tickSeconds() argument 222 return new TickClock(system(zone), NANOS_PER_SECOND); in tickSeconds() 244 public static Clock tickMinutes(ZoneId zone) { in tickMinutes() argument 245 return new TickClock(system(zone), NANOS_PER_MINUTE); in tickMinutes() 314 public static Clock fixed(Instant fixedInstant, ZoneId zone) { in fixed() argument 316 Objects.requireNonNull(zone, "zone"); in fixed() 317 return new FixedClock(fixedInstant, zone); in fixed() [all …]
|
D | ZoneRegion.java | 65 import java.time.zone.ZoneRules; 66 import java.time.zone.ZoneRulesException; 67 import java.time.zone.ZoneRulesProvider;
|
D | OffsetDateTime.java | 92 import java.time.zone.ZoneRules; 222 public static OffsetDateTime now(ZoneId zone) { in now() argument 223 return now(Clock.system(zone)); in now() 317 public static OffsetDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() argument 319 Objects.requireNonNull(zone, "zone"); in ofInstant() 320 ZoneRules rules = zone.getRules(); in ofInstant() 1539 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) { in query() 1687 public ZonedDateTime atZoneSameInstant(ZoneId zone) { in atZoneSameInstant() argument 1688 return ZonedDateTime.ofInstant(dateTime, offset, zone); in atZoneSameInstant() 1715 public ZonedDateTime atZoneSimilarLocal(ZoneId zone) { in atZoneSimilarLocal() argument [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 81 import java.time.zone.ZoneOffsetTransition; 82 import java.time.zone.ZoneRules; 123 private final transient ZoneId zone; field in ChronoZonedDateTimeImpl 135 ChronoLocalDateTimeImpl<R> localDateTime, ZoneId zone, ZoneOffset preferredOffset) { in ofBest() argument 137 Objects.requireNonNull(zone, "zone"); in ofBest() 138 if (zone instanceof ZoneOffset) { in ofBest() 139 return new ChronoZonedDateTimeImpl<>(localDateTime, (ZoneOffset) zone, zone); in ofBest() 141 ZoneRules rules = zone.getRules(); in ofBest() 159 return new ChronoZonedDateTimeImpl<>(localDateTime, offset, zone); in ofBest() 170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant() argument [all …]
|
D | Chronology.java | 405 default ChronoLocalDate dateNow(ZoneId zone) { in dateNow() argument 406 return dateNow(Clock.system(zone)); in dateNow() 504 ZoneId zone = ZoneId.from(temporal); in zonedDateTime() local 507 return zonedDateTime(instant, zone); in zonedDateTime() 511 return ChronoZonedDateTimeImpl.ofBest(cldt, zone, null); in zonedDateTime() 528 …efault ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() argument 529 return ChronoZonedDateTimeImpl.ofInstant(this, instant, zone); in zonedDateTime()
|
D | MinguoChronology.java | 243 public MinguoDate dateNow(ZoneId zone) { in dateNow() argument 244 return dateNow(Clock.system(zone)); in dateNow() 274 public ChronoZonedDateTime<MinguoDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() argument 275 return (ChronoZonedDateTime<MinguoDate>)super.zonedDateTime(instant, zone); in zonedDateTime()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | Gregorian.java | 44 protected Date(TimeZone zone) { in Date() argument 45 super(zone); in Date() 76 public Date getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument 77 return getCalendarDate(millis, newCalendarDate(zone)); in getCalendarDate() 84 public Date newCalendarDate(TimeZone zone) { in newCalendarDate() argument 85 return new Date(zone); in newCalendarDate()
|
D | JulianCalendar.java | 53 protected Date(TimeZone zone) { in Date() argument 54 super(zone); in Date() 133 public Date getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument 134 return getCalendarDate(millis, newCalendarDate(zone)); in getCalendarDate() 141 public Date newCalendarDate(TimeZone zone) { in newCalendarDate() argument 142 return new Date(zone); in newCalendarDate()
|
D | Era.java | 109 public long getSince(TimeZone zone) { in getSince() argument 110 if (zone == null || !localTime) { in getSince() 113 int offset = zone.getOffset(since); in getSince()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | TEST_MAPPING | 7 "include-filter": "libcore.java.time.zone" 15 "include-filter": "tck.java.time.zone" 18 "include-filter": "tck.java.time.zone.serial" 21 "include-filter": "test.java.time.zone"
|
D | package-info.java | 86 package java.time.zone;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock.java | 78 final ZoneId zone; field in TCKClock.MockInstantClock 79 MockInstantClock(long millis, ZoneId zone) { in MockInstantClock() argument 81 this.zone = zone; in MockInstantClock() 93 return zone; in getZone()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | ZonedDateTimeTest.java | 99 ZoneId zone, LocalDateTime expectedDateTime, ZoneOffset expectedOffset) { in checkOfInstant() argument 100 ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(localDateTime, offset, zone); in checkOfInstant() 102 localDateTime, offset, zone, zonedDateTime); in checkOfInstant() 105 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfInstant() 168 private static void checkOfLocal(LocalDateTime localDateTime, ZoneId zone, in checkOfLocal() argument 170 ZonedDateTime zonedDateTime = ZonedDateTime.ofLocal(localDateTime, zone, preferredOffset); in checkOfLocal() 172 localDateTime, zone, preferredOffset, zonedDateTime); in checkOfLocal() 175 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfLocal()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 903 private TimeZone zone; field in Calendar 1082 private TimeZone zone; field in Calendar.Builder 1306 public Builder setTimeZone(TimeZone zone) { in setTimeZone() argument 1307 if (zone == null) { in setTimeZone() 1310 this.zone = zone; in setTimeZone() 1460 if (zone == null) { in build() 1461 zone = TimeZone.getDefault(); in build() 1483 cal = new GregorianCalendar(zone, locale, true); in build() 1486 GregorianCalendar gcal = new GregorianCalendar(zone, locale, true); in build() 1596 protected Calendar(TimeZone zone, Locale aLocale) in Calendar() argument [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeParseContext.java | 330 parsed.zone = (parsed.zone != null ? parsed.zone : formatter.getZone()); in toResolved() 415 void setParsed(ZoneId zone) { in setParsed() argument 416 Objects.requireNonNull(zone, "zone"); in setParsed() 417 currentParsed().zone = zone; in setParsed()
|
D | DateTimeFormatter.java | 512 private final ZoneId zone; field in DateTimeFormatter 1375 Chronology chrono, ZoneId zone) { in DateTimeFormatter() argument 1382 this.zone = zone; in DateTimeFormatter() 1413 …ateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone); in withLocale() 1438 …ateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone); in withDecimalStyle() 1492 …ateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone); in withChronology() 1506 return zone; in getZone() 1545 public DateTimeFormatter withZone(ZoneId zone) { in withZone() argument 1546 if (Objects.equals(this.zone, zone)) { in withZone() 1549 …ateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone); in withZone() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 267 public static TemporalQuery<ZoneId> zone() { in zone() method in TemporalQueries 374 ZoneId zone = temporal.query(ZONE_ID); 375 return (zone != null ? zone : temporal.query(OFFSET));
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKZoneIdPrinterParser.java | 115 public void test_print(LocalDateTime ldt, ZoneId zone, String expected) { in test_print() argument 116 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 123 public void test_print_pattern_VV(LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_VV() argument 124 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_VV() 219 … assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + text); in test_parseSuccess_plain() 236 …assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + prefixTe… in test_parseSuccess_prefix() 252 …assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + suffixTe… in test_parseSuccess_suffix() 274 assertEquals(parsed.query(TemporalQueries.zone()), expected); in test_parseSuccess_caseSensitive() 292 … assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + lcText); in test_parseSuccess_caseInsensitive()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesExceptionTest.java | 16 package libcore.java.time.zone; 19 import java.time.zone.ZoneRulesException;
|
D | ZoneOffsetTransitionTest.java | 16 package libcore.java.time.zone; 23 import java.time.zone.ZoneOffsetTransition;
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionRuleSerialization.java | 60 package tck.java.time.zone.serial; 66 import java.time.zone.ZoneOffsetTransitionRule; 67 import java.time.zone.ZoneOffsetTransitionRule.TimeDefinition;
|
D | TCKFixedZoneRulesSerialization.java | 60 package tck.java.time.zone.serial; 70 import java.time.zone.ZoneRules;
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestFixedZoneRules.java | 60 package test.java.time.zone; 62 import java.time.zone.ZoneRules;
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 54 protected Calendar(java.util.TimeZone zone, java.util.Locale aLocale) { in Calendar() argument 62 public static java.util.Calendar getInstance(java.util.TimeZone zone) { in getInstance() argument 71 java.util.TimeZone zone, java.util.Locale aLocale) { in getInstance() argument 76 java.util.TimeZone zone, java.util.Locale aLocale) { in getJapaneseImperialInstance() argument 81 java.util.TimeZone zone, java.util.Locale aLocale) { in createCalendar() argument 595 private java.util.TimeZone zone; field in Calendar 651 public java.util.Calendar.Builder setTimeZone(java.util.TimeZone zone) { in setTimeZone() argument 718 private java.util.TimeZone zone; field in Calendar.Builder
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRulesProvider.java | 60 package tck.java.time.zone; 68 import java.time.zone.ZoneRules; 69 import java.time.zone.ZoneRulesException; 70 import java.time.zone.ZoneRulesProvider;
|