public boolean isFixed() { return iZone.isFixed(); }
public boolean isFixed() { return iZone.isFixed(); }
/** * Checks if the given {@link LocalDateTime} is within a gap. * <p> * When switching from standard time to Daylight Savings Time there is * typically a gap where a clock hour is missing. This method identifies * whether the local datetime refers to such a gap. * * @param localDateTime the time to check, not null * @return true if the given datetime refers to a gap * @since 1.6 */ public boolean isLocalDateTimeGap(LocalDateTime localDateTime) { if (isFixed()) { return false; } try { localDateTime.toDateTime(this); return false; } catch (IllegalInstantException ex) { return true; } }
/** * Checks if the given {@link LocalDateTime} is within a gap. * <p> * When switching from standard time to Daylight Savings Time there is * typically a gap where a clock hour is missing. This method identifies * whether the local datetime refers to such a gap. * * @param localDateTime the time to check, not null * @return true if the given datetime refers to a gap * @since 1.6 */ public boolean isLocalDateTimeGap(LocalDateTime localDateTime) { if (isFixed()) { return false; } try { localDateTime.toDateTime(this); return false; } catch (IllegalInstantException ex) { return true; } }
public boolean isPrecise() { return iTimeField ? iField.isPrecise() : iField.isPrecise() && this.iZone.isFixed(); }
public boolean isPrecise() { return iTimeField ? iField.isPrecise() : iField.isPrecise() && this.iZone.isFixed(); }
public boolean isFixed() { return iZone.isFixed(); }
/** * Checks if the given {@link LocalDateTime} is within a gap. * <p> * When switching from standard time to Daylight Savings Time there is * typically a gap where a clock hour is missing. This method identifies * whether the local datetime refers to such a gap. * * @param localDateTime the time to check, not null * @return true if the given datetime refers to a gap * @since 1.6 */ public boolean isLocalDateTimeGap(LocalDateTime localDateTime) { if (isFixed()) { return false; } try { localDateTime.toDateTime(this); return false; } catch (IllegalArgumentException ex) { return true; } }
public boolean isPrecise() { return iTimeField ? iField.isPrecise() : iField.isPrecise() && this.iZone.isFixed(); }
DateTimeZone unfixedZone = null; for (DateTimeZone timeZone : entry.getValue()) { if (timeZone.isFixed()) { if (fixedZone == null) { fixedZone = timeZone;
if (timeZone.isFixed()) { return false;
public boolean isFixed() { return iZone.isFixed(); }
if (timeZone.isFixed()) { return field.roundFloor(utcMillis);
public DateTimeZoneWithOffset(DateTimeZone standardDateTimeZone, DateTimeZone offsetDateTimeZone) { this.standardDateTimeZone = standardDateTimeZone; this.offsetDateTimeZone = offsetDateTimeZone; if (offsetDateTimeZone != null && standardDateTimeZone.isFixed()) { throw new IllegalArgumentException("offsetDateTimeZone must be null when standardDateTimeZone is fixed"); } if (offsetDateTimeZone == null && !standardDateTimeZone.isFixed()) { throw new IllegalArgumentException("offsetDateTimeZone must be not null when standardDateTimeZone is not fixed"); } }
public boolean isPrecise() { return iTimeField ? iField.isPrecise() : iField.isPrecise() && this.iZone.isFixed(); }
if (field() != null && tz != null && tz.isFixed() == false && field() != null && script() == null) {
@Override protected Object[] toConvertedColumns(DateTime value) { return new Object[] { value.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) }; } }
@Override protected Object[] toConvertedColumns(DateTime value) { return new Object[] { value.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) }; } }
@Override protected Object[] toConvertedColumns(DateMidnight value) { return new Object[] { value.toLocalDate(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) }; } }