This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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