Here you can find the source of adjust(Date date, int h, int m, int s)
public static final Date adjust(Date date, int h, int m, int s)
//package com.java2s; import java.util.*; public class Main { public static final Date adjust(Date date, int h, int m, int s) { Calendar calender = Calendar.getInstance(); calender.setTime(date);//from w w w .ja va 2 s .com calender.set(Calendar.HOUR_OF_DAY, h); calender.set(Calendar.MINUTE, m); calender.set(Calendar.SECOND, s); return calender.getTime(); } }