This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I am not understanding why second part of code is not displaying the time according to respective timezones. Following code works correctly.That is, it shows the corresponding time in that timezone.
Maybe you should post the code where you're creating the timezone that gets passed into printTimeZone as a parameter.
Joined: Mar 13, 2003
TimeZone reference has been passed correctly as prior to that I am printing all available TimeZones. Problem seems to be that DateFormat is must while printing local time of any TimeZone. Is it possible to get local time of any timezone without using DateFormat?