동일한 컴퓨터에서 다음 코드 문을 컴파일하고 runned했을 때 두 개의 다른 시간대 값이 나타납니다.JDK 버전 별 시간대 값 변경
public class TimeZoneDemo {
public static void main(String args[]){
// create time zone object
TimeZone timezone = TimeZone.getDefault();
// checking time zone value
System.out.println(timezone);
}
}
JDK 1.6.35
Tue Sep 24 06:25:03 VET 2013
sun.util.calendar.ZoneInfo[id="America/Caracas",offset=-16200000,dstSavings=0,useDaylight=false,transitions=5,lastRule=null]
JDK 1.7.02
Tue Sep 24 22:56:54 MAGT 2013
sun.util.calendar.ZoneInfo[id="Asia/Magadan",offset=43200000,dstSavings=0,useDaylight=false,transitions=66,lastRule=null]
OS : 윈도우 7 64 비트.
어떤 운영 체제에서 어떤 컴퓨터를 사용합니까? (Windows, Mac, Linux, ...) – Joni
컴퓨터에 구성된 실제 위치는 무엇입니까? –
windows 7 64 비트. –