Here you can find the source of getHourByZore(int hour)
public static Calendar getHourByZore(int hour)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static Calendar getHourByZore(int hour) { Calendar c = Calendar.getInstance(); c.add(Calendar.DAY_OF_MONTH, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.HOUR_OF_DAY, hour); return c; }//from ww w . ja va 2 s . c o m }