Here you can find the source of getCalendar(int dayOfWeek, int atHour, int atMinute)
public static Calendar getCalendar(int dayOfWeek, int atHour, int atMinute)
//package com.java2s; // The MIT License (MIT) import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static Calendar getCalendar(int dayOfWeek, int atHour, int atMinute) { Calendar cal = new GregorianCalendar(); cal.set(Calendar.DAY_OF_WEEK, dayOfWeek); cal.set(Calendar.HOUR_OF_DAY, atHour); cal.set(Calendar.MINUTE, atMinute); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal; }/*from www.j av a 2 s .c om*/ }