Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Current time using country code

 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15284
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic