Here you can find the source of addHour(Date baseDate, int hour, TimeZone timezone)
public static Date addHour(Date baseDate, int hour, TimeZone timezone)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.TimeZone; public class Main { public static Date addHour(Date baseDate, int hour, TimeZone timezone) { Calendar cal = Calendar.getInstance(); cal.setTimeZone(timezone);/*from ww w . j ava 2 s.co m*/ cal.setTime(baseDate); cal.add(Calendar.HOUR_OF_DAY, hour); return cal.getTime(); } }