Here you can find the source of convertToTimeZone(Calendar time, TimeZone timeZone)
public static Calendar convertToTimeZone(Calendar time, TimeZone timeZone)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { public static Calendar convertToTimeZone(Calendar time, TimeZone timeZone) { Calendar foreignTime = new GregorianCalendar(timeZone); foreignTime.setTimeInMillis(time.getTimeInMillis()); return foreignTime; }// www . j a va2 s . c om }