/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "StrictChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "StrictChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }
private long truncateMillisPeriod(final long t) { // toStandardDuration assumes days are always 24h, and hours are always 60 minutes, // which may not always be the case, e.g if there are daylight saving changes. if (chronology.days().isPrecise() && chronology.hours().isPrecise()) { final long millis = period.toStandardDuration().getMillis(); long offset = t % millis - origin % millis; if (offset < 0) { offset += millis; } return t - offset; } else { throw new UnsupportedOperationException( "Period cannot be converted to milliseconds as some fields mays vary in length with chronology " + chronology.toString()); } }
private long truncateMillisPeriod(final long t) { // toStandardDuration assumes days are always 24h, and hours are always 60 minutes, // which may not always be the case, e.g if there are daylight saving changes. if (chronology.days().isPrecise() && chronology.hours().isPrecise()) { final long millis = period.toStandardDuration().getMillis(); long offset = t % millis - origin % millis; if (offset < 0) { offset += millis; } return t - offset; } else { throw new UnsupportedOperationException( "Period cannot be converted to milliseconds as some fields mays vary in length with chronology " + chronology.toString()); } }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "StrictChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "StrictChronology[" + getBase().toString() + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LenientChronology[" + getBase().toString() + ']'; }
public CalendarDate parse(String timeString) { DateTime dt = dflocal.parseDateTime(timeString); Calendar cal = Calendar.get(dt.getChronology().toString()); return new CalendarDate(cal, dt); }
public CalendarDate parse(String timeString) { DateTime dt = dflocal.parseDateTime(timeString); Calendar cal = Calendar.get(dt.getChronology().toString()); return new CalendarDate(cal, dt); }
public CalendarDate parse(String timeString) { DateTime dt = dflocal.parseDateTime(timeString); Calendar cal = Calendar.get(dt.getChronology().toString()); return new CalendarDate(cal, dt); }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }
/** * A debugging string for the chronology. * * @return the debugging string */ public String toString() { return "LimitChronology[" + getBase().toString() + ", " + (getLowerLimit() == null ? "NoLimit" : getLowerLimit().toString()) + ", " + (getUpperLimit() == null ? "NoLimit" : getUpperLimit().toString()) + ']'; }