Here you can find the source of getMinTimeMillisToday(final Calendar calendar)
public static long getMinTimeMillisToday(final Calendar calendar)
//package com.java2s; import java.util.Calendar; public class Main { public static long getMinTimeMillisToday(final Calendar calendar) { Calendar startTotalCalendar = calendar; if (startTotalCalendar == null) { startTotalCalendar = Calendar.getInstance(); }/*from w w w . ja v a 2 s. c om*/ startTotalCalendar.set(Calendar.HOUR_OF_DAY, 0); startTotalCalendar.set(Calendar.MINUTE, 0); startTotalCalendar.set(Calendar.SECOND, 0); return startTotalCalendar.getTimeInMillis(); } public static long getMinTimeMillisToday() { return getMinTimeMillisToday(Calendar.getInstance()); } }