timzone trouble - 1.1x and 1.2


A

Aman

Hi,
the java 1.2 gives the timzone output as "America/Chicago" , whereas
1.1x gives me the 3 letter zone (example "MST" ) .
(java 1.13 is on HP-UX 10.20 ,
whereas java 1.2 is available on HP-UX 11.11 )

Calendar cal = Calendar.getInstance() ;
System.out.println(cal.getTimeZone().getID()) ;

I really NEED to use the 3 letter format , but only java 1.2 is
available to me right now on HP-UX 11.11 ).

what are my options ?

regards,
Aman.
 
Ad

Advertisements

Ad

Advertisements

A

Aman Angrish

Thanks , I found something from that link.
specifying the timezone as a parameter would work for me .
java -Duser.timezone="WOW" ....

regards,
Aman.
 

Top