List of usage examples for org.joda.time.base BaseLocal getChronology
Chronology getChronology();
From source file:ee.ut.soras.ajavtV2.mudel.ajavaljend.arvutus.SemLeidmiseAbimeetodid.java
License:Open Source License
/** * Tagastab antud kalendriv2ljaga seotud ekstreemum (min v6i max) v22rtuse; *///from w ww. j av a 2s. c o m public static int getLocalDateTimeFieldExtremum(BaseLocal partial, DateTimeFieldType type, boolean getMax) { DateTimeField field = type.getField(partial.getChronology()); return (getMax) ? (field.getMaximumValue(partial)) : (field.getMinimumValue(partial)); }