getTimeInMillis() returning the same value for different Time Zones
832069Jan 18 2011 — edited Jan 19 2011Hi,
The getTimeInMillis() is always returning me the same value for different time zones.
I am required to pass the getTimeInMillis() value or another time zone in the program.
The source code below.
Calendar cal1 = Calendar.getInstance(TimeZone.getTimeZone("EST"));
System.out.println(cal1.getTimeInMillis());
Calendar cal2 = Calendar.getInstance(TimeZone.getTimeZone("IST"));
System.out.println(cal2.getTimeInMillis());
Any help regarding this is appreciated.
Thank you
Achyuth