Example usage for android.text.format Time getActualMaximum

List of usage examples for android.text.format Time getActualMaximum

Introduction

In this page you can find the example usage for android.text.format Time getActualMaximum.

Prototype

public int getActualMaximum(int field) 

Source Link

Document

Return the maximum possible value for the given field given the value of the other fields.

Usage

From source file:Main.java

public static Time getLastTime(Time time) {
    time.monthDay = time.getActualMaximum(Time.MONTH_DAY);
    time.normalize(true);/*from www  .  j a  v  a  2 s. c  om*/
    return time;
}