Home | History | Annotate | Download | only in zone

Lines Matching refs:time

62 package java.time.zone;
64 import static java.time.temporal.TemporalAdjusters.nextOrSame;
65 import static java.time.temporal.TemporalAdjusters.previousOrSame;
73 import java.time.DayOfWeek;
74 import java.time.LocalDate;
75 import java.time.LocalDateTime;
76 import java.time.LocalTime;
77 import java.time.Month;
78 import java.time.ZoneOffset;
79 import java.time.chrono.IsoChronology;
126 * The cutover time in the 'before' offset.
128 private final LocalTime time;
130 * Whether the cutover time is midnight at the end of day.
134 * The definition of how the local time should be interpreted.
161 * @param time the cutover time in the 'before' offset, not null
162 * @param timeEndOfDay whether the time is midnight at the end of day
169 * @throws IllegalArgumentException if the end of day flag is true when the time is not midnight
175 LocalTime time,
182 Objects.requireNonNull(time, "time");
190 if (timeEndOfDay && time.equals(LocalTime.MIDNIGHT) == false) {
191 throw new IllegalArgumentException("Time must be midnight when end of day flag is true");
193 return new ZoneOffsetTransitionRule(month, dayOfMonthIndicator, dayOfWeek, time, timeEndOfDay, timeDefnition, standardOffset, offsetBefore, offsetAfter);
204 * @param time the cutover time in the 'before' offset, not null
205 * @param timeEndOfDay whether the time is midnight at the end of day
211 * @throws IllegalArgumentException if the end of day flag is true when the time is not midnight
217 LocalTime time,
226 this.time = time;
247 * <a href="../../../serialized-form.html#java.time.zone.Ser">dedicated serialized form</a>.
250 * <a href="../../../serialized-form.html#java.time.zone.ZoneRules">ZoneRules.writeReplace</a>
255 * final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay());
259 * final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31);
301 final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay());
305 final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31);
351 LocalTime time = (timeByte == 31 ? LocalTime.ofSecondOfDay(in.readInt()) : LocalTime.of(timeByte % 24, 0));
355 return ZoneOffsetTransitionRule.of(month, dom, dow, time, timeByte == 24, defn, std, before, after);
412 * Gets the local time of day of the transition which must be checked with
415 * The time is converted into an instant using the time definition.
417 * @return the local time of day of the transition, not null
420 return time;
424 * Is the transition local time midnight at the end of day.
428 * @return whether a local time of midnight is at the start or end of the day
435 * Gets the time definition, specifying how to convert the time to an instant.
437 * The local time can be converted to an instant using the standard offset,
440 * @return the time definition, not null
498 LocalDateTime localDT = LocalDateTime.of(date, time);
521 time.equals(other.time) &&
537 int hash = ((time.toSecondOfDay() + (timeEndOfDay ? 1 : 0)) << 15) +
567 buf.append(" at ").append(timeEndOfDay ? "24:00" : time.toString())
576 * A definition of the way a local time can be converted to the actual
577 * transition date-time.
579 * Time zone rules are expressed in one of three ways:
587 /** The local date-time is expressed in terms of the UTC offset. */
589 /** The local date-time is expressed in terms of the wall offset. */
591 /** The local date-time is expressed in terms of the standard offset. */
595 * Converts the specified local date-time to the local date-time actually
603 * The WALL type returns the input date-time.
606 * @param dateTime the local date-time, not null
609 * @return the date-time relative to the wall/before offset, not null