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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Current time using country code" Watch "Current time using country code" New topic

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: 14666

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 8 API documentation
jQuery in Action, 2nd edition
subject: Current time using country code