Hi,
I have this simple program in which want a Calendar Object created for a TimeZone...doesn't work..
import java.text.*;
import java.util.*;
public class TestTimeZone {
public static void main(String args[]) {
TimeZone tz1 = TimeZone.getTimeZone("America/Los_Angeles");
System.out.println("TimeZone id=" + tz1.getID());
Calendar gmtCal = Calendar.getInstance(tz1);
System.out.println("getTime=" + gmtCal.getInstance().getTime());
}
}
I have this simple program in which want a Calendar Object created for a TimeZone...doesn't work..
import java.text.*;
import java.util.*;
public class TestTimeZone {
public static void main(String args[]) {
TimeZone tz1 = TimeZone.getTimeZone("America/Los_Angeles");
System.out.println("TimeZone id=" + tz1.getID());
Calendar gmtCal = Calendar.getInstance(tz1);
System.out.println("getTime=" + gmtCal.getInstance().getTime());
}
}