aspose file tools*
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
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: 14102
    
  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