Refine search
@Override public DateTimeField getField(Chronology chronology) { return new OffsetDateTimeField(new DividedDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), QUARTER_OF_YEAR, 3), 1); }
/** * Add to the offset component of the specified time instant, * wrapping around within that component if necessary. * * @param instant the time instant in millis to update. * @param amount the amount of units to add (can be negative). * @return the updated time instant. */ public long addWrapField(long instant, int amount) { return set(instant, FieldUtils.getWrappedValue(get(instant), amount, iMin, iMax)); }
public long roundFloor(long instant) { return getWrappedField().roundFloor(instant); }
fields.year = new OffsetDateTimeField( new SkipUndoDateTimeField(this, field), BUDDHIST_OFFSET); fields.weekyear = new OffsetDateTimeField( new SkipUndoDateTimeField(this, field), BUDDHIST_OFFSET); field = new OffsetDateTimeField(fields.yearOfEra, 99); fields.centuryOfEra = new DividedDateTimeField( field, fields.eras, DateTimeFieldType.centuryOfEra(), 100); fields.centuries = fields.centuryOfEra.getDurationField(); fields.yearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.yearOfCentury(), 1); fields.weekyearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.weekyearOfCentury(), 1);
public DateTimeField getField(Chronology chronology) { return new OffsetDateTimeField(new RemainderDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), MonthOfHalfYear, 6), 1); } };
/** * Add the specified amount of offset units to the specified time * instant. The amount added may be negative. * * @param instant the time instant in millis to update. * @param amount the amount of units to add (can be negative). * @return the updated time instant. */ public long add(long instant, long amount) { instant = super.add(instant, amount); FieldUtils.verifyValueBounds(this, get(instant), iMin, iMax); return instant; }
public long roundCeiling(long instant) { return getWrappedField().roundCeiling(instant); }
public int getLeapAmount(long instant) { return getWrappedField().getLeapAmount(instant); }
public long remainder(long instant) { return getWrappedField().remainder(instant); }
public boolean isLeap(long instant) { return getWrappedField().isLeap(instant); }
public DurationField getLeapDurationField() { return getWrappedField().getLeapDurationField(); }
public long roundHalfFloor(long instant) { return getWrappedField().roundHalfFloor(instant); }
public long roundHalfCeiling(long instant) { return getWrappedField().roundHalfCeiling(instant); }
public long roundHalfEven(long instant) { return getWrappedField().roundHalfEven(instant); }
fields.year = new OffsetDateTimeField( new SkipUndoDateTimeField(this, field), BUDDHIST_OFFSET); fields.weekyear = new OffsetDateTimeField( new SkipUndoDateTimeField(this, field), BUDDHIST_OFFSET); field = new OffsetDateTimeField(fields.yearOfEra, 99); fields.centuryOfEra = new DividedDateTimeField( field, fields.eras, DateTimeFieldType.centuryOfEra(), 100); fields.centuries = fields.centuryOfEra.getDurationField(); fields.yearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.yearOfCentury(), 1); fields.weekyearOfCentury = new OffsetDateTimeField( field, DateTimeFieldType.weekyearOfCentury(), 1);
public DateTimeField getField(Chronology chronology) { return new OffsetDateTimeField(new RemainderDateTimeField(new OffsetDateTimeField(chronology.monthOfYear(), -1), MonthOfQuarter, 3), 1); } };
/** * Add the specified amount of offset units to the specified time * instant. The amount added may be negative. * * @param instant the time instant in millis to update. * @param amount the amount of units to add (can be negative). * @return the updated time instant. */ public long add(long instant, int amount) { instant = super.add(instant, amount); FieldUtils.verifyValueBounds(this, get(instant), iMin, iMax); return instant; }
public long roundCeiling(long instant) { return getWrappedField().roundCeiling(instant); }
public int getLeapAmount(long instant) { return getWrappedField().getLeapAmount(instant); }
public long remainder(long instant) { return getWrappedField().remainder(instant); }