This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Current time using country code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Current time using country code" Watch "Current time using country code" New topic
Author

Current time using country code

Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Dear All,

I want the local time of specific country using java. For example, if I pass the AU as the country code, I should be able to get the current time of the Australia. I have only country code or locale as input with me. Please suggest. Thanks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

In some countries there are multiple time zones. Look at this map for example, you'll see that Australia is using five seven (!) different time zones. So what would you expect to get when you only have the country code of Australia as the input?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
Consider Paul's rocket mass heater.
 
subject: Current time using country code
 
Similar Threads
Solution for displaying time by inputting country code
Get the Date Format of particular country using country code
Gregorian Calendar and time zones
Country name along with the names of Ranchers.
Populating the ComboBox by selecting another