Here you can find the source of getMinTimeMillisWeek()
public static long getMinTimeMillisWeek()
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static long getMinTimeMillisWeek() { final Calendar startTotalCalendar = GregorianCalendar.getInstance(); startTotalCalendar.set(Calendar.DAY_OF_WEEK, startTotalCalendar.getFirstDayOfWeek()); startTotalCalendar.set(Calendar.HOUR_OF_DAY, 0); startTotalCalendar.set(Calendar.MINUTE, 0); startTotalCalendar.set(Calendar.SECOND, 0); return startTotalCalendar.getTimeInMillis(); }/* ww w . j a v a 2 s . c o m*/ }