java date timezone 변경

다국어처리시 timezone 이용 

String day = "2015-12-14 15:21:12";
		
String dateFormat = "yyyy-MM-dd HH:mm:ss";
SimpleDateFormat df = new SimpleDateFormat(dateFormat);
		
Date date = df.parse(day);
		
TimeZone tz;
tz = TimeZone.getTimeZone("Asia/Seoul"); df.setTimeZone(tz);
System.out.println(tz.getDisplayName()+":"+df.format(date));
		
tz = TimeZone.getTimeZone("Asia/Shanghai"); df.setTimeZone(tz);
System.out.println(tz.getDisplayName()+":"+df.format(date));
	
tz = TimeZone.getTimeZone("America/New_York"); df.setTimeZone(tz);
System.out.println(tz.getDisplayName()+":"+df.format(date));
 

 2.timezone 목록확인

String[] timeZoneArr = TimeZone.getAvailableIDs();
for (String timeZone : timeZoneArr) {
    System.out.println(timeZone);
}