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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top