// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class DT7 {
    public static void main(String[] args) {
        DateFormat df = new SimpleDateFormat("HH:mm");
        Date now = new Date();
        Calendar nowplus2 = new GregorianCalendar();
        nowplus2.setTime(now);
        nowplus2.add(Calendar.HOUR, 2);
        System.out.println(df.format(now));
        System.out.println(df.format(nowplus2.getTime()));
        df.setTimeZone(TimeZone.getTimeZone("GMT"));
        System.out.println(df.format(now));
        System.out.println(df.format(nowplus2.getTime()));
    }
}
