• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java timezones

 
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Could someon please let me know how i can find out the java timezoneid for Amarillo?

I've written this piece of code to get all the timezone id but it doesnt return anything for Amarillo (US)



And also, if i use a timezone, for example Europe/London, would i have to update my program every time the clock changes in the UK (e.g. to British summer time)?

Thanks

ps. Question posted in another forum. ">
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there!

If you run this code:


You will see all the zones that are available.
Then you see this... et voila!! I don't think there is any API that has the timezone of every villages in the world... it would be crazy!!

And about to update your application... how are you using this? normally you take the localtime of the machine or something like that so if your machine updates the time when seasson changes... there you have ;)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic