returnEndOfIntervalBefore property

SkippedTimeResolver returnEndOfIntervalBefore
final

A SkippedTimeResolver which returns the final tick of the time zone interval before the 'gap'.

Implementation

static final SkippedTimeResolver returnEndOfIntervalBefore = (LocalDateTime local, DateTimeZone zone, ZoneInterval before, ZoneInterval after) {
  Preconditions.checkNotNull(zone, 'zone');
  Preconditions.checkNotNull(before, 'before');
  Preconditions.checkNotNull(after, 'after');
  // Given that there's a zone after before, it can't extend to the end of time.
  return ZonedDateTime(before.end - Time.epsilon, zone, local.calendar);
};