Here you can find the source of getCalendarForSchedule(Calendar cal)
public static Calendar getCalendarForSchedule(Calendar cal)
//package com.java2s; /*// w w w. jav a 2 s . c om * @ (#) CalendarUtils.java * * Copyright (c) 2010 ClickDiagnostics Inc. All Rights Reserved. This software is the * confidential and proprietary information of ClickDiagnostics ("Confidential * Information"). You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * into with ClickDiagnostics. */ import java.util.Calendar; public class Main { public static Calendar getCalendarForSchedule(Calendar cal) { // set the hour min sec // cal.set ( Calendar.HOUR_OF_DAY, // SchedulingConstants.DEFAULT_VISIT_HOUR ); // cal.set ( Calendar.MINUTE, SchedulingConstants.DEFAULT_VISIT_MIN ); // cal.set ( Calendar.SECOND, SchedulingConstants.DEFAULT_VISIT_SECOND // ); // return cal return cal; } }