Example usage for org.joda.time.base BaseLocal getChronology

List of usage examples for org.joda.time.base BaseLocal getChronology

Introduction

In this page you can find the example usage for org.joda.time.base BaseLocal getChronology.

Prototype

Chronology getChronology();

Source Link

Document

Gets the chronology of the partial which is never null.

Usage

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));
}