Here you can find the source of getMinTimeMillisToday()
public static long getMinTimeMillisToday()
//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 ww.j ava 2 s .c o m*/ 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()); } }