Hi all, I am trying to get the date in a country based on its time zone and locale. I have used the getInstance method of the "Calendar" Class passing the Locale and time zone as parameters. But Some how it shows the the timezone and locale of the system. Can any one tell me how to get a solution for my problem. Rajesh Here is the code for more info : import java.util.*; class TestTime { public static void main(String a[]) { SimpleTimeZone TZ=new SimpleTimeZone(18000000,"India"); // 18000000 milliseconds is the difference wrt to GMT Locale india=new Locale("hi","IN"); Calendar cal=Calendar.getInstance(TZ,india); System.out.println("Date: = " + cal.getTime()); } }
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.