Code example for Time

Methods: normalizesettoMillis

0
import android.text.format.Time; 
 
class Utils { 
    public static long createTimeInMillis(int second, int minute, int hour, int monthDay,
            int month, int year, String timezone) {
        Time t = new Time(timezone);
        t.set(second, minute, hour, monthDay, month, year);
        t.normalize(false);
        return t.toMillis(false);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java