Example usage for org.joda.time DateTimeField getMinimumValue

List of usage examples for org.joda.time DateTimeField getMinimumValue

Introduction

In this page you can find the example usage for org.joda.time DateTimeField getMinimumValue.

Prototype

public abstract int getMinimumValue(ReadablePartial instant);

Source Link

Document

Get the minimum value for this field evaluated at the specified time.

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;
 *//*w  ww .j  a  v  a 2 s.  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));
}