Home | History | Annotate | Download | only in temporal

Lines Matching defs:ZONE

112  * <li> a zone, or
138 * This queries a {@code TemporalAccessor} for the zone.
139 * The zone is only returned if the date-time conceptually contains a {@code ZoneId}.
144 * In most cases, applications should use {@link #zone()} as this query is too strict.
150 * {@code ZonedDateTime} returns the associated zone<br>
155 * {@code ChronoZonedDateTime} returns the associated zone<br>
165 * @return a query that can obtain the zone ID of a temporal, not null
252 * This queries a {@code TemporalAccessor} for the zone.
253 * It first tries to obtain the zone, using {@link #zoneId()}.
263 * exception if a zone cannot be obtained.
265 * @return a query that can obtain the zone ID or offset of a temporal, not null
267 public static TemporalQuery<ZoneId> zone() {
268 return TemporalQueries.ZONE;
373 static final TemporalQuery<ZoneId> ZONE = (temporal) -> {
374 ZoneId zone = temporal.query(ZONE_ID);
375 return (zone != null ? zone : temporal.query(OFFSET));